Fix date on blog list

This commit is contained in:
Vri 🌈 2023-01-19 17:36:19 +01:00
parent fdee470516
commit e32da340a0
Signed by: vrifox
GPG key ID: D40098E5B60B2197

View file

@ -9,7 +9,7 @@
<h1 class="title">{{ .Title }}</h1>
<p>{{ .Content }}</p>
{{- range .Pages }}
<p> <a href="{{ .Permalink }}">{{ .Title }}</a> <span>{{ .Date.Day }}. {{ if eq .Params.lang "de"}} {{ index $.Site.Data.monate (printf "%d" .Date.Month) }} {{ else }} {{ .Date.Month }} {{ end }} {{ .Date.Year }}</span> </p>
<p> <a href="{{ .Permalink }}">{{ .Title }}</a> <span>{{ .Date | time.Format ":date_long" }}</span> </p>
{{- end }}
</main>