theNewDynamic / gohugo-theme-ananke

Ananke: A theme for Hugo Sites
https://gohugo-ananke-theme-demo.netlify.com/
MIT License
1.13k stars 1.14k forks source link

use time.Format to format dates. It allows dates to be localized. #537

Closed cbrunet closed 2 years ago

netlify[bot] commented 2 years ago

Deploy Preview for gohugo-ananke-theme-demo canceled.

Name Link
Latest commit 097a084e772cf449898c2435cca4abedd993d2f5
Latest deploy log https://app.netlify.com/sites/gohugo-ananke-theme-demo/deploys/625615cad8c7bf0008ad4505
cbrunet commented 2 years ago

Can I just keep the original date format string? I think this should be compatible with older Hugo version, while allowing the user to provide a predefined layout when using a more recent version of Hugo.

regisphilibert commented 2 years ago

Can I just keep the original date format string?

Yes of course! Can you confirm I understand right: That the default would remain "January 2, 2006" as before, and user would be informed to set :date_full in the theme's date_format params to benefit from new localized dates?