added #1337 from github adityatelange/hugo-PaperMod
This commit is contained in:
parent
9ea3bb0e1f
commit
455f57c422
@ -9,6 +9,9 @@
|
||||
one: "1 Minute"
|
||||
other: "{{ .Count }} Minuten"
|
||||
|
||||
- id: lastmod
|
||||
translation: "Zuletzt Geändert"
|
||||
|
||||
- id: words
|
||||
translation:
|
||||
one : "Wort"
|
||||
|
@ -9,6 +9,9 @@
|
||||
one : "1 min"
|
||||
other: "{{ .Count }} min"
|
||||
|
||||
- id: lastmod
|
||||
translation: "Last modified"
|
||||
|
||||
- id: words
|
||||
translation:
|
||||
one : "word"
|
||||
|
@ -8,6 +8,10 @@
|
||||
{{- $scratch.Add "meta" (slice (i18n "read_time" .ReadingTime | default (printf "%d min" .ReadingTime))) }}
|
||||
{{- end }}
|
||||
|
||||
{{- if and (.Param "Lastmod") (ne (.Param "Lastmod"| time.Format "2023-10-15") (.Date | time.Format "2023-10-15" )) }}
|
||||
{{- $scratch.Add "meta" (slice (printf "<span title='%s'>%s: %s</span>" (.Lastmod) (i18n "lastmod") (.Lastmod | time.Format (default "January 2, 2006" site.Params.DateFormat)))) }}
|
||||
{{- end }}
|
||||
|
||||
{{- if (.Param "ShowWordCount") -}}
|
||||
{{- $scratch.Add "meta" (slice (i18n "words" .WordCount | default (printf "%d words" .WordCount))) }}
|
||||
{{- end }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user