You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I have been trying to figure this out for a while, but, can't unfortunately.
When having categories auto-populate, the contents of localhost:/blog/categories auto populates the date based on the last published:
Exactly like the demo site.
The date and time is being generated as January 01, 0001:
Is there any way to get the date and time to generate based on the most recent post instead of the page of the categories/$categoryname/index.md contents?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
So I have been trying to figure this out for a while, but, can't unfortunately.
When having categories auto-populate, the contents of localhost:/blog/categories auto populates the date based on the last published:
Exactly like the demo site.
However, if you generate index.md files for the categories underneath like so: https://github.com/CaiJimmy/hugo-theme-stack/tree/master/exampleSite/content/categories/Test
The date and time is being generated as
January 01, 0001
:Is there any way to get the date and time to generate based on the most recent post instead of the page of the categories/$categoryname/index.md contents?
Beta Was this translation helpful? Give feedback.
All reactions