From 9775ab2ba69b85e2310c533656c3c85dd67c4639 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Tue, 10 Mar 2026 17:58:07 +0100 Subject: [PATCH 1/3] fix: skip link doesn't work when no `h1` is present in Markdown (#79) Signed-off-by: squidfunk --- dist/base.html | 4 ++++ dist/partials/content.html | 2 +- src/base.html | 4 ++++ src/partials/content.html | 2 +- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/dist/base.html b/dist/base.html index 0c0d4fd5..c1cd4440 100644 --- a/dist/base.html +++ b/dist/base.html @@ -111,6 +111,10 @@ {{ lang.t("action.skip") }} + {% else %} + + {{ lang.t("action.skip") }} + {% endif %}
diff --git a/dist/partials/content.html b/dist/partials/content.html index 48c79c81..15184a98 100644 --- a/dist/partials/content.html +++ b/dist/partials/content.html @@ -3,7 +3,7 @@ -#} {% include "partials/actions.html" %} {% if "\u003ch1" not in page.content %} -

{{ page.title | d(config.site_name, true)}}

+

{{ page.title | d(config.site_name, true)}}

{% endif %} {{ page.content }} {% include "partials/tags.html" %} diff --git a/src/base.html b/src/base.html index 62196946..9763a67c 100644 --- a/src/base.html +++ b/src/base.html @@ -214,6 +214,10 @@ {{ lang.t("action.skip") }} + {% else %} + + {{ lang.t("action.skip") }} + {% endif %}
diff --git a/src/partials/content.html b/src/partials/content.html index 28d173b4..2f22cb66 100644 --- a/src/partials/content.html +++ b/src/partials/content.html @@ -31,7 +31,7 @@ page title (or respectively site name) is used as the main headline. --> {% if "\u003ch1" not in page.content %} -

{{ page.title | d(config.site_name, true)}}

+

{{ page.title | d(config.site_name, true)}}

{% endif %} From 745bed599f8c2cb86dbc5d94d34008e028b4bd55 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Tue, 10 Mar 2026 18:12:16 +0100 Subject: [PATCH 2/3] fix: add missing `aria-label` to `label` elements (#79) Signed-off-by: squidfunk --- dist/base.html | 2 +- dist/partials/header.html | 4 ++-- src/base.html | 5 ++++- src/partials/header.html | 10 ++++++++-- 4 files changed, 15 insertions(+), 6 deletions(-) diff --git a/dist/base.html b/dist/base.html index c1cd4440..4a0c0e0e 100644 --- a/dist/base.html +++ b/dist/base.html @@ -104,7 +104,7 @@ {% set features = config.theme.features or [] %} - +
{% if page.toc | first is defined %} {% set skip = page.toc | first %} diff --git a/dist/partials/header.html b/dist/partials/header.html index d8f255e1..b20b8615 100644 --- a/dist/partials/header.html +++ b/dist/partials/header.html @@ -12,7 +12,7 @@ -