️ feat(a11y): add skip to content link for keyboard navigation (#552)
Some checks failed
Build Site / Check and Build for Pull Requests (push) Has been cancelled
Build Site / Build and Deploy on Main Push (push) Has been cancelled

Co-authored-by: Awiteb <a@4rs.nl>
This commit is contained in:
Óscar 2025-09-28 21:10:39 +02:00 committed by GitHub
parent 13f88a8e86
commit e8dcd0528e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 47 additions and 1 deletions

View file

@ -34,8 +34,9 @@ This variable will hold all the text strings for the language #}
{% include "partials/header.html" %}
<body{% if lang in rtl_languages %} dir="rtl"{% endif %}{% if config.extra.override_serif_with_sans %} class="use-sans-serif"{% endif %}>
<a href="#main-content" id="skip-link">{{ macros_translate::translate(key="skip_to_content", default="Skip to content", language_strings=language_strings) }}</a>
{% include "partials/nav.html" %}
<div class="content">
<div class="content" id="main-content">
{# Post page is the default #}
{% block main_content %}