Fix accessibility bug: fully comment out disabled main menu entry
deploy / deploy (push) Successful in 4s
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:
Reference in New Issue
Block a user