Skip to content

Commit

Permalink
Add custom alt title in Multilingual Mode + Add fallback based on Lan…
Browse files Browse the repository at this point in the history
…guageName with emojify (#364)
  • Loading branch information
geeqla authored Apr 17, 2021
1 parent 98c1755 commit d136063
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}
Expand Down

0 comments on commit d136063

Please sign in to comment.