Adds language badges to tour overview table #39

Merged
stb merged 2 commits from language-tags into main 2025-11-08 17:39:11 +01:00
Collaborator

Adds support for {{< lang de >}}, {{< lang en >}} and {{< lang deen >}} to append language badges with tooltips and screen reader-compatible content:
image

Also adds corresponding badges for both the German and English 39C3 tour overview table.

Adds support for `{{< lang de >}}`, `{{< lang en >}}` and `{{< lang deen >}}` to append language badges with tooltips and screen reader-compatible content: ![image](/attachments/7d3293ad-ae32-4a54-8cc8-7348a32e63b6) Also adds corresponding badges for both the German and English 39C3 tour overview table.
feat: Adds language badges to tour overview table
Some checks failed
/ build (pull_request) Failing after 15s
d4092d97b6
@ -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>
Author
Collaborator

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.

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.
chrore: Relocates README note for the language badge
All checks were successful
/ build (pull_request) Successful in 27s
/ cleanup-staging (pull_request) Successful in 3s
/ build (push) Successful in 16s
166ac52b34
stb approved these changes 2025-11-08 17:38:59 +01:00
stb merged commit 166ac52b34 into main 2025-11-08 17:39:11 +01:00
Sign in to join this conversation.
No reviewers
stb
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
CCCHH/hackertours!39
No description provided.