mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-11-25 03:51:37 +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 . -}}
|
||||
{{- if ne $lang .Lang }}
|
||||
<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) }}">
|
||||
{{- if (and $.Site.Params.displayFullLangName (.Language.LanguageName)) }}
|
||||
{{- .Language.LanguageName | emojify -}}
|
||||
|
Loading…
Reference in New Issue
Block a user