added translation
This commit is contained in:
parent
47cd614136
commit
5dca124b24
4 changed files with 25 additions and 5 deletions
|
@ -9,7 +9,7 @@
|
|||
<main>
|
||||
<h1 class="title">{{ .Title }}</h1>
|
||||
{{- range .Pages }}
|
||||
<p> <a href="{{ .Permalink }}">{{ .Title }}</a> <span>{{ .Date.Format "2 January 2006" }}</span> </p>
|
||||
<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>
|
||||
{{- end }}
|
||||
</main>
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{{- define "main" }}
|
||||
<main>
|
||||
{{- if eq .Params.type "post" }}
|
||||
<p class="date-published" title="{{ .Date.Format "2. January 2006, 15:04 MST" }}">{{ .Date.Format "2. January 2006" }}</p>
|
||||
<p class="date-published" title="{{ .Date.Format "2. January 2006, 15:04 MST" }}">{{ .Date.Day }}. {{ if eq .Params.lang "de"}} {{ index $.Site.Data.monate (printf "%d" .Date.Month) }} {{ else }} {{ .Date.Month }} {{ end }} {{ .Date.Year }}</p>
|
||||
{{- end }}
|
||||
<h1 class="title">{{ .Title }}</h1>
|
||||
{{ .Content -}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue