mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2023-12-21 10:22:58 +01:00
layouts/single: fix Lang Name hidden when LanguageName
was unset
This commit is contained in:
parent
77baa3d76e
commit
b5d55aee8d
@ -14,7 +14,13 @@
|
|||||||
{{- i18n "translations" | default "Translations"}}:
|
{{- i18n "translations" | default "Translations"}}:
|
||||||
{{- range .Translations }}
|
{{- range .Translations }}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a>
|
<a href="{{ .Permalink }}">
|
||||||
|
{{- if (and $.Site.Params.displayFullLangName (.Language.LanguageName)) }}
|
||||||
|
{{- .Language.LanguageName | humanize -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- .Lang | humanize -}}
|
||||||
|
{{- end -}}
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</ul>
|
</ul>
|
||||||
|
Loading…
Reference in New Issue
Block a user