Blog

0012: Dates in Front Matter

Context

By default hugo will use date format in yaml and toml as strings. This is required for easier parsability https://gohugo.io/functions/time/format/

Decision

Use yaml timestamps in IS8601 format for dates in front matter

https://yaml.org/spec/1.2.2/#example-timestamps

Alternatives

keep using strings

Consequences

Resources