Having come from Jekyll, I still prefer all the files to be prefixed with date stamps. This helps me know the order of posts chronologically when working locally (e.g. when I click Name in the folder and the posts show in ascending or descending order) and it seems even Hugo retains that order in the deployed site without me sorting using Reverse
or anything. If I was to remove all the date prefixes, how would Hugo recognize the order, both locally and on the site I build? I don’t have the date in my frontmatter, only lastmod
date.
See the default value for date:
https://gohugo.io/getting-started/configuration/#configure-dates
Default sort order:
https://gohugo.io/templates/lists/#default-weight--date--linktitle--filepath
Guess then I will just stick with the date prefixes.
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.