docs: add css/html cleanup todo note

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Ludo 2026-04-11 02:18:12 +02:00
parent b42e4942fa
commit 1408a52e8b
Signed by: ludo
GPG key ID: F6E479DEFAB84D6E

View file

@ -0,0 +1,17 @@
# 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>` in `docs/single.html` — redundant and misleading. `<article>` does not map to the `main` landmark; `<main>` does. Remove the attribute.
## i18n
- `"On this page"` is hardcoded in `docs/single.html` and `vault/single.html`. Move to Hugo i18n strings or a site param before adding any second language.