mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-11-24 19:41:37 +01:00
language-switch: enable emojify
- languageName: ":country_emoji:" can now be displayed as emoji
This commit is contained in:
parent
b5d55aee8d
commit
b7169d2259
@ -16,7 +16,7 @@
|
|||||||
<li>
|
<li>
|
||||||
<a href="{{ .Permalink }}">
|
<a href="{{ .Permalink }}">
|
||||||
{{- if (and $.Site.Params.displayFullLangName (.Language.LanguageName)) }}
|
{{- if (and $.Site.Params.displayFullLangName (.Language.LanguageName)) }}
|
||||||
{{- .Language.LanguageName | humanize -}}
|
{{- .Language.LanguageName | emojify | humanize -}}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
{{- .Lang | humanize -}}
|
{{- .Lang | humanize -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
@ -87,7 +87,7 @@
|
|||||||
<a href="{{- .Permalink -}}" title="{{ .Language.LanguageName | default .Lang | humanize }}"
|
<a href="{{- .Permalink -}}" title="{{ .Language.LanguageName | default .Lang | humanize }}"
|
||||||
aria-label="{{ .Language.LanguageName | default .Lang | humanize }}">
|
aria-label="{{ .Language.LanguageName | default .Lang | humanize }}">
|
||||||
{{- if (and $.Site.Params.displayFullLangName (.Language.LanguageName)) }}
|
{{- if (and $.Site.Params.displayFullLangName (.Language.LanguageName)) }}
|
||||||
{{- .Language.LanguageName | humanize -}}
|
{{- .Language.LanguageName | emojify | humanize -}}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
{{- .Lang | humanize -}}
|
{{- .Lang | humanize -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
Loading…
Reference in New Issue
Block a user