{"id":26502843,"url":"https://github.com/grassator/docpad-plugin-datefromfilename","last_synced_at":"2025-03-20T18:35:47.335Z","repository":{"id":7358723,"uuid":"8683451","full_name":"grassator/docpad-plugin-datefromfilename","owner":"grassator","description":"DocPad plugin for specifying document dates at the beginning of their filenames","archived":false,"fork":false,"pushed_at":"2016-12-10T12:12:57.000Z","size":8,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-23T09:38:52.105Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/grassator.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-03-10T09:57:45.000Z","updated_at":"2017-02-15T21:15:18.000Z","dependencies_parsed_at":"2022-07-21T14:19:44.228Z","dependency_job_id":null,"html_url":"https://github.com/grassator/docpad-plugin-datefromfilename","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grassator%2Fdocpad-plugin-datefromfilename","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grassator%2Fdocpad-plugin-datefromfilename/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grassator%2Fdocpad-plugin-datefromfilename/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grassator%2Fdocpad-plugin-datefromfilename/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grassator","download_url":"https://codeload.github.com/grassator/docpad-plugin-datefromfilename/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244671932,"owners_count":20491274,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-20T18:35:46.736Z","updated_at":"2025-03-20T18:35:47.313Z","avatar_url":"https://github.com/grassator.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Date from Filename Plugin for DocPad\r\nThis plugin provides support for [DocPad](https://docpad.org) for specifying\r\ndocument dates at the beginning of their filenames.\r\n\r\n## Install\r\n\r\n```\r\nnpm install --save docpad-plugin-datefromfilename\r\n```\r\n\r\n## Usage\r\n\r\nTo use, simply prepend document file name with date formatted like `YYYY-MM-DD`\r\nseparated from base name with either nothing, space, `-` or `_`. In the end\r\nbasename (without extension) of your file should look something like this:\r\n\r\n```\r\n2013-03-10_my-awesome-page\r\n```\r\n\r\n## Configuration\r\n\r\nBy default, this plugin does not remove date part from output filename. This can be changed in your [DocPad configuration file](http://docpad.org/docs/config) by adding something similar to the following:\r\n\r\n``` coffee\r\nplugins:\r\n\tdatefromfilename:\r\n\t\tremoveDate: true\r\n```\r\n\r\nYou can customize the regular expression used to parse dates from filenames with `dateRegExp`:\r\n\r\n```coffee\r\nplugins:\r\n  datefromfilename:\r\n    dateRegExp: /\\b(\\d{4})-(\\d{2})-(\\d{2})-/\r\n```\r\n\r\n## License\r\nLicensed under the incredibly [permissive](http://en.wikipedia.org/wiki/Permissive_free_software_licence) [MIT License](http://creativecommons.org/licenses/MIT/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrassator%2Fdocpad-plugin-datefromfilename","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrassator%2Fdocpad-plugin-datefromfilename","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrassator%2Fdocpad-plugin-datefromfilename/lists"}