This commit is contained in:
Marvin Gaube 2024-05-07 19:44:06 -05:00 committed by GitHub
commit 7dbf50dbc6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 10 additions and 0 deletions

View File

@ -31,3 +31,6 @@
- id: code_copied
translation: "Kopiert!"
- id: lastmod
translation: "Zuletzt geändert"

View File

@ -31,3 +31,6 @@
- id: code_copied
translation: "copied!"
- id: lastmod
translation: "Last Modified"

View File

@ -4,6 +4,10 @@
{{- $scratch.Add "meta" (slice (printf "<span title='%s'>%s</span>" (.Date) (.Date | time.Format (default "January 2, 2006" site.Params.DateFormat)))) }}
{{- 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 "ShowReadingTime") -}}
{{- $scratch.Add "meta" (slice (i18n "read_time" .ReadingTime | default (printf "%d min" .ReadingTime))) }}
{{- end }}