halogenica / beautifulhugo

Theme for the Hugo static website generator
Other
1.13k stars 602 forks source link

Use time.format to get localised date string #415

Closed ghost closed 1 year ago

ghost commented 2 years ago

By using the time.Format from the go time package, we can get localised date in the post meta information. So if you want to display days or months in text, you won't default to english ( Lunes 1 Febrero instead of Monday 1 February in spanish for instance). https://pkg.go.dev/time#ANSIC

RoneoOrg commented 2 years ago

Hi @ElliottDugal,

this feature is available for specific Hugo versions only, isn't it? Should we update the Readme and theme.toml accordingly?