From b5d55aee8de23cc403a4f97df06526fc63135a1b Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sun, 8 Nov 2020 23:04:24 +0530 Subject: [PATCH] layouts/single: fix Lang Name hidden when LanguageName was unset --- layouts/_default/single.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 72fe4a5f..2d39c802 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -14,7 +14,13 @@ {{- i18n "translations" | default "Translations"}}: {{- range .Translations }}
  • - {{ .Language.LanguageName }} + + {{- if (and $.Site.Params.displayFullLangName (.Language.LanguageName)) }} + {{- .Language.LanguageName | humanize -}} + {{- else }} + {{- .Lang | humanize -}} + {{- end -}} +
  • {{- end }}