cryogen-project / cryogen-core

Cryogen's core
Eclipse Public License 1.0
69 stars 62 forks source link

Provide an option to drop the date from file names #128

Closed holyjak closed 4 years ago

holyjak commented 4 years ago

Having a file like content/asc/posts/2019-03-21-awesome-post.asc generates public/<posts-root-uri>/2019-03-21-awesome-post.html however I want it without the date, i.e. awesome-post.html (so that I don't break all URLs after migrating to Cryogen - and I prefer the dates in the source file name as they are nicely sorted by it).

A solution would be to add :post-remove-date true (or post-dateless-uri)?

I'd be happy to provide a PR.

lacarmen commented 4 years ago

PRs always welcome!

holyjak commented 4 years ago

Deprecated by #130 that makes it possible for the user to do it herself, as shown at http://cryogenweb.org/docs/customizing-cryogen.html#extra_parameters_for_your_selmer_templates