mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-11-22 10:31:39 +01:00
Add custom alt title in Multilingual Mode + Add fallback based on LanguageName with emojify (#364)
This commit is contained in:
parent
98c17559e9
commit
d136063229
@ -123,7 +123,7 @@
|
|||||||
{{- range . -}}
|
{{- range . -}}
|
||||||
{{- if ne $lang .Lang }}
|
{{- if ne $lang .Lang }}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{- .Permalink -}}" title="{{ .Language.LanguageName | default (.Lang | humanize) }}"
|
<a href="{{- .Permalink -}}" title="{{ .Language.Params.languageAltTitle | default (.Language.LanguageName | emojify) | 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 | emojify -}}
|
{{- .Language.LanguageName | emojify -}}
|
||||||
|
Loading…
Reference in New Issue
Block a user