Skip to content

how can I change the date style #112

Answered by hugo-sid
xtccc asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @xtccc, I have added support for setting custom date format. You can take a look at the following code, which illustrates how to set the format in the config file.

dateFormat = "January 2, 2006" # default date format used on various pages
# See https://gohugo.io/functions/format/#hugo-date-and-time-templating-reference for available date formats

Please update your theme to use this feature.

Thanks for using HBA (Hugo Blog Awesome). Don't forget to star the repo, if you liked this theme.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hugo-sid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #111 on September 13, 2023 13:00.