CaiJimmy / hugo-theme-stack

Card-style Hugo theme designed for bloggers
https://stack.jimmycai.com
GNU General Public License v3.0
4.89k stars 1.6k forks source link

Date format not showing correctly #947

Closed wmbm closed 7 months ago

wmbm commented 7 months ago

What happened?

For some reason my dates on posts are showing as:

image

in my index.md files I do the following "date: 2024-09-07" as in the template. So I can't really tell what's going on? Any thoughts?

Hugo version

0.122.0

Theme version

3.21.0

What browsers are you seeing the problem on?

Firefox

More information about the browser

No response

Relevant log output

No response

Link to Minimal Reproducible Example

https://github.com/wmbm/wmbm.github.io

CaiJimmy commented 7 months ago

https://github.com/wmbm/wmbm.github.io/blob/7b9571968378d22b96b2f4f2d5b77954a392f747/config/_default/params.toml#L13-L14

You have changed the year (2006 -> 2024). The Golang date format follows a strict naming rule, these are not nonsense dates.

wmbm commented 7 months ago

Thanks for the quick response! Working now.