Skip to content

Commit

Permalink
Remove superfluous pipe from header (due to Hugo v0.123 upgrade)
Browse files Browse the repository at this point in the history
  • Loading branch information
yanirs committed Feb 21, 2024
1 parent f8cd7ee commit dd701e6
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,28 +95,6 @@
</svg>
</button>
{{- end }}

{{- $lang := .Lang}}
{{- $separator := or $label_text (not site.Params.disableThemeToggle)}}
{{- with site.Home.AllTranslations }}
<ul class="lang-switch">
{{- if $separator }}<li>|</li>{{ end }}
{{- range . -}}
{{- if ne $lang .Lang }}
<li>
<a href="{{- .Permalink -}}" title="{{ .Language.Params.languageAltTitle | default (.Language.LanguageName | emojify) | default (.Lang | title) }}"
aria-label="{{ .Language.LanguageName | default (.Lang | title) }}">
{{- if (and site.Params.displayFullLangName (.Language.LanguageName)) }}
{{- .Language.LanguageName | emojify -}}
{{- else }}
{{- .Lang | title -}}
{{- end -}}
</a>
</li>
{{- end -}}
{{- end}}
</ul>
{{- end }}
</div>
</div>
{{- $currentPage := . }}
Expand Down

0 comments on commit dd701e6

Please sign in to comment.