mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2024-12-28 23:53:20 -05:00
575cc0ca8c
- The site function provides global access to the same data as the .Site page method. - Current context (`.`) is never considered.
20 lines
617 B
HTML
20 lines
617 B
HTML
{{- if .IsTranslated -}}
|
|
{{- if (ne .Layout "search") }}
|
|
{{- if or .Params.author site.Params.author (.Param "ShowReadingTime") (not .Date.IsZero) }} | {{- end -}}
|
|
{{- end }}
|
|
<ul class="i18n_list">
|
|
{{- i18n "translations" | default "Translations" }}:
|
|
{{- range .Translations }}
|
|
<li>
|
|
<a href="{{ .Permalink }}">
|
|
{{- if (and site.Params.displayFullLangName (.Language.LanguageName)) }}
|
|
{{- .Language.LanguageName | emojify -}}
|
|
{{- else }}
|
|
{{- .Lang | title -}}
|
|
{{- end -}}
|
|
</a>
|
|
</li>
|
|
{{- end }}
|
|
</ul>
|
|
{{- end -}}
|