Skip to content

Commit 872c006

Browse files
committed
Update docs: add post meta date localization info
1 parent 903ae2d commit 872c006

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

‎exampleSite/content/docs/customization.md

+10
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,16 @@ Full list of available default post meta fields:
8080
In addition to the default meta fields, you can add your own by placing a custom partial under
8181
`layouts/partials/post_meta/<name>.html`.
8282

83+
#### Post meta: `date` localization
84+
85+
With [Hugo v0.87.0](https://gohugo.io/news/0.87.0-relnotes/) (or later), `date` meta field shows localized dates (with
86+
weekdays and months in the current language) by default. In most cases, such a transition is painless, but owners of
87+
multilingual sites should be careful and check that everything translates as expected after the upgrade.
88+
89+
You can also use a predefined layout, like `:date_full`, and it will output localized dates or times. For additional
90+
information about localized dates and possible date/time formatting layouts, please see
91+
[Hugo: time.Format](https://gohugo.io/functions/dateformat/).
92+
8393
### Thumbnail visibility
8494

8595
By default, a thumbnail image has shown for a list and single pages simultaneously. In some cases, you may want to show

0 commit comments

Comments
 (0)