886 B
886 B
CSS / HTML cleanup — loose ends
Found during sidebar/TOC refactor session (2026-04-11).
Redundant resets
nav[data-nav="sidebar"] ul li { margin: 0; padding: 0 }— browser default for<li>already has no margin/padding. No-op, remove.aside[data-toc] nav ul li { margin: 0; padding: 0 }— same.
Semantic HTML
<small>← Previous</small>and<small>Next →</small>in prev/next footer (docs/single.html,vault/single.html) —<small>is fine print, not a directional label. Replace with something appropriate.role="main"on<article>indocs/single.html— redundant and misleading.<article>does not map to themainlandmark;<main>does. Remove the attribute.
i18n
"On this page"is hardcoded indocs/single.htmlandvault/single.html. Move to Hugo i18n strings or a site param before adding any second language.