diff options
Diffstat (limited to 'layouts/partials/article.html')
-rw-r--r-- | layouts/partials/article.html | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/layouts/partials/article.html b/layouts/partials/article.html index a0829ed..de3225e 100644 --- a/layouts/partials/article.html +++ b/layouts/partials/article.html @@ -8,7 +8,12 @@ <!-- Date above Article Title--> {{if not .Date.IsZero }} <h2 class="subtitle is-6"> - {{ .Date.Format "January 2, 2006" }} + <!-- Consider german month names --> + {{if eq .Site.Language.Lang "de" }} + {{ .Date.Day }}. {{ index $.Site.Data.monate (printf "%d" .Date.Month) }} {{ .Date.Year }}, {{ .Date.Format "15:04" }} + {{ else }} + {{ .Date.Format "January 2, 2006 | 15:04" }} + {{ end }} </h2> {{ end }} |