This plugin provides support for DocPad for specifying document dates at the beginning of their filenames.
npm install --save docpad-plugin-datefromfilename
To use, simply prepend document file name with date formatted like
separated from base name with either nothing, space,
_. In the end
basename (without extension) of your file should look something like this:
By default, this plugin does not remove date part from output filename. This can be changed in your DocPad configuration file by adding something similar to the following:
You can customize the regular expression used to parse dates from filenames with