git: 10633eb86b - main - Website: Fix HTML validation errors
Date: Sun, 20 Sep 2026 10:25:58 UTC
The branch main has been updated by vladlen:
URL: https://cgit.FreeBSD.org/doc/commit/?id=10633eb86b6396ec3fe8b666f8e250d67398fbec
commit 10633eb86b6396ec3fe8b666f8e250d67398fbec
Author: Vladlen Popolitov <vladlen@FreeBSD.org>
AuthorDate: 2026-09-20 10:25:52 +0000
Commit: Vladlen Popolitov <vladlen@FreeBSD.org>
CommitDate: 2026-09-20 10:25:52 +0000
Website: Fix HTML validation errors
Ids like documentation, download, support, about, community in the
top menu collide with the same ids inside documents, breaking
validation and <label for=...>. Match footer.html and prefix them
with the section name (e.g. header-community-title).
Note: id=""name"" is left as is, so [[name]] anchors are implicitly
unavailable on the site.
Reviewed by: carlavilla
Approved by: carlavilla
Differential Revision: https://reviews.freebsd.org/D59857
PR: 297509
---
.../beastie/layouts/_partials/site-header.html | 24 +++++++++++-----------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/website/themes/beastie/layouts/_partials/site-header.html b/website/themes/beastie/layouts/_partials/site-header.html
index 03574484a8..7fe6a8a85e 100644
--- a/website/themes/beastie/layouts/_partials/site-header.html
+++ b/website/themes/beastie/layouts/_partials/site-header.html
@@ -13,8 +13,8 @@
<nav>
<ul class="menu">
<li class="menu-item">
- <input id="about" type="checkbox">
- <label class="menu-item-description" for="about">
+ <input id="header-about-title" type="checkbox">
+ <label class="menu-item-description" for="header-about-title">
{{ i18n "h-about" }}
<i class="fa fa-angle-down fa-lg" aria-hidden="true"></i>
</label>
@@ -37,8 +37,8 @@
</ul>
</li>
<li class="menu-item">
- <input id="download" type="checkbox">
- <label class="menu-item-description" for="download">
+ <input id="header-download-title" type="checkbox">
+ <label class="menu-item-description" for="header-download-title">
{{ i18n "h-get-freebsd" }}
<i class="fa fa-angle-down fa-lg" aria-hidden="true"></i>
</label>
@@ -58,8 +58,8 @@
</ul>
</li>
<li class="menu-item">
- <input id="documentation" type="checkbox">
- <label class="menu-item-description" for="documentation">
+ <input id="header-documentation-title" type="checkbox">
+ <label class="menu-item-description" for="header-documentation-title">
{{ i18n "h-documentation" }}
<i class="fa fa-angle-down fa-lg" aria-hidden="true"></i>
</label>
@@ -94,8 +94,8 @@
</ul>
</li>
<li class="menu-item">
- <input id="community" type="checkbox">
- <label class="menu-item-description" for="community">
+ <input id="header-community-title" type="checkbox">
+ <label class="menu-item-description" for="header-community-title">
{{ i18n "h-community" }}
<i class="fa fa-angle-down fa-lg" aria-hidden="true"></i>
</label>
@@ -121,8 +121,8 @@
</ul>
</li>
<li class="menu-item">
- <input id="developers" type="checkbox">
- <label class="menu-item-description" for="developers">
+ <input id="header-developers-title" type="checkbox">
+ <label class="menu-item-description" for="header-developers-title">
{{ i18n "h-developers" }}
<i class="fa fa-angle-down fa-lg" aria-hidden="true"></i>
</label>
@@ -151,8 +151,8 @@
</ul>
</li>
<li class="menu-item">
- <input id="support" type="checkbox">
- <label class="menu-item-description" for="support">
+ <input id="header-support-title" type="checkbox">
+ <label class="menu-item-description" for="header-support-title">
{{ i18n "h-support" }}
<i class="fa fa-angle-down fa-lg" aria-hidden="true"></i>
</label>