26 lines
1.0 KiB
HTML
26 lines
1.0 KiB
HTML
<span class="post-meta text-muted">
|
|
{{ $lastmodstr := default (i18n "dateFormat") .Site.Params.dateformat | .Lastmod.Format }}
|
|
{{ $datestr := default (i18n "dateFormat") .Site.Params.dateformat | .Date.Format }}
|
|
|
|
{{ $datestr }}
|
|
|
|
{{ if ne $datestr $lastmodstr }}
|
|
| Last Modified On: {{ $lastmodstr }}
|
|
{{ end }}
|
|
|
|
{{ if .Site.Params.readingTime }}
|
|
| <i class="bi bi-clock"></i> {{ i18n "readingTime"}}{{ .ReadingTime }} {{ i18n "readTime" }}
|
|
{{ end }}
|
|
|
|
{{ if .Site.Params.wordCount }}
|
|
| <i class="bi bi-book"></i> {{ .WordCount }} {{ i18n "words" }}
|
|
{{ end }}
|
|
|
|
{{ if .IsTranslated -}}
|
|
{{- $sortedTranslations := sort .Translations "Site.Language.Weight" -}}
|
|
{{- $links := apply $sortedTranslations "partial" "translation_link.html" "." -}}
|
|
{{- $cleanLinks := apply $links "chomp" "." -}}
|
|
{{- $linksOutput := delimit $cleanLinks (i18n "translationsSeparator") -}}
|
|
• {{ i18n "translationsLabel" }}{{ $linksOutput }}
|
|
{{- end }}
|
|
</span> |