PaperModX/layouts/partials/translation_list.html

20 lines
635 B
HTML
Raw Normal View History

2021-02-06 18:20:19 +00:00
{{- if .IsTranslated -}}
2021-03-30 13:37:36 +01:00
{{- if (ne .Layout "search") }}
2021-02-06 18:20:19 +00:00
{{- if or .Params.author $.Site.Params.author (.Param "ShowReadingTime") (not .Date.IsZero) }} | {{- end -}}
{{- end }}
<ul class="i18n_list">
2021-03-30 13:37:36 +01:00
{{- i18n "translations" | default "Translations" }}:
2021-02-06 18:20:19 +00:00
{{- range .Translations }}
<li>
<a href="{{ .Permalink }}">
{{- if (and $.Site.Params.displayFullLangName (.Language.LanguageName)) }}
{{- .Language.LanguageName | emojify | humanize -}}
{{- else }}
{{- .Lang | humanize -}}
{{- end -}}
</a>
</li>
{{- end }}
</ul>
2021-03-30 13:37:36 +01:00
{{- end -}}