Skip to content

Support yyyy-MM-dd-HH-mm-ss in filenames #13830

@BenjaminAbt

Description

@BenjaminAbt

Hugo already supports date metadata within filenames, which is great. However, currently there's no supported format that includes both date and time in files.

For example, to sort blog posts by date and specify a time, you must currently maintain the date in the file name and then again twice via the frontmatter with Date and Time.

It would be very helpful if Hugo could support filenames with full timestamps in the format: yyyy-MM-dd-HH-mm-ss
This would allow for more precise ordering and uniqueness, especially for content that is created or published multiple times per day.

Is this something that could be considered for a future release?

Thanks for your great work on Hugo!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions