Adds language badges to tour overview table #39
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "language-tags"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds support for

{{< lang de >}},{{< lang en >}}and{{< lang deen >}}to append language badges with tooltips and screen reader-compatible content:Also adds corresponding badges for both the German and English 39C3 tour overview table.
@ -0,0 +12,4 @@{{- else if eq $code "en" -}}{{- $title = cond (eq .Site.Language.Lang "de") "Diese Tour wird auf Englisch stattfinden" "This tour will be held in English" -}}{{- end -}}<abbr style="font-size: .65em; vertical-align: super;" title="{{ $title }}">{{ $label }}</abbr>Initially used classes and added them to
/assets/sass/_custom.scss, but this way logic and styling of the badges are limited to one file. Happy to change this, if requested.