hugo-theme-wondermod/layouts/partials/translation_list.html

20 lines
613 B
HTML
Raw Normal View History

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