kakawait / hugo-tranquilpeak-theme

A gorgeous responsive theme for Hugo blog framework
https://tranquilpeak.kakawait.com
GNU General Public License v3.0
926 stars 525 forks source link

Check possible usage of new localized date format #510

Open kakawait opened 3 years ago

kakawait commented 3 years ago

The time.Format documentation. This function will now give you localized dates (with weekdays and months in the current language). It supports all of Go’s layout syntax, but also some predefined constants, e.g. {{ .Date | time.Format ":date_long" }}.

From https://gohugo.io/news/0.87.0-relnotes/

Instead of having maintaining inside i18n file