Fix accessibility bug: fully comment out disabled main menu entry
deploy / deploy (push) Successful in 4s

[[menu.main]] was left active while its name/url/weight fields were
commented out, so Hugo built one real menu entry with no name or URL.
The header template rendered it as an empty <a href="">, which screen
readers announce using the resolved href (the current page's own URL)
since there's no text or aria-label -- e.g. reading "freebie" on the
freebie page.
This commit is contained in:
2026-07-13 12:48:10 -04:00
parent 0a8631a0f2
commit aa08908493
+1 -1
View File
@@ -14,7 +14,7 @@ disableKinds = ["taxonomy", "term"]
author = "Will Estes" author = "Will Estes"
eec_base_url = "https://eec.reground.org" eec_base_url = "https://eec.reground.org"
[[menu.main]] # [[menu.main]]
# name = "Courses" # name = "Courses"
# url = "/courses/" # url = "/courses/"
# weight = 10 # weight = 10