Dates in post filenames

If you name them consistently you can use an archetype to set the title and use a function to drop off the front, similar to the example at https://gohugo.io/content-management/archetypes/#create-a-new-archetype-template

title: "{{ replace .Name "-" " " | title }}"

Perhaps using https://gohugo.io/functions/slicestr/.

Then set your permalink to use :title.

But my recommendation is to use your filesystem or version control to manage/sort dates. :sunglasses:

2 Likes