I could not figure out if and how it’s possible to set a custom time format for articles in the config file.
So I would like to have the .Date Variable to the German “DD.MM.YYYY” in the rendered output (Frontmatter is like YYYY-MM-DD).
In some template I found {{ if .Site.Params.strings.date_format }}{{ .Date.Format .Site.Params.strings.date_format }}{{ else }}{{ .Date.Format "Mon, 2. Jan. 2006" }}{{ end }}
so I put this [params] date_format = "Mon, 2. Jan. 2006"
in my config.toml but it doesn’t work … any hint to the right direction appreciated.
The reason for this format originates from Go, the programming language that Hugo uses. There’s probably more information about the different ways to format Hugo dates in the docs and on the forum.