Behind http.StripPrefix the request path is relative to the base path,
so for base path /feeds the page /feeds was cut to / again. A path that
no longer matches RequestURI's is now taken as already stripped.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A consumer whose middleware demands a CSRF token on every POST
(yamase-web) had to exempt the menu's route; it can now put the hidden
token field into the form instead.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Behind http.StripPrefix the request path is already relative, and a
blind TrimPrefix turned /release-notes into "elease-notes" for
BasePath /r, sending the menu back to the start page.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every color token is now one light-dark(<light>, <dark>) pair; the
mode (data-theme) only sets color-scheme, so "system" no longer needs a
duplicated media-query block. RGB triplets and the url() icons Bootstrap
swaps in dark mode pick their value via the --yw-if-light/--yw-if-dark
switches.
Bootstrap's theme-dependent --bs-* variables and the components that
hard-code its primary blue are mapped onto --yw-*, so tables, forms,
links, buttons and alerts follow the theme. The navbar drops
navbar-dark, which pinned its colors to white in light mode.
New data-palette axis (PageHeader.Palette): default, graphite
(grey/violet, after nessajina.tv) and contrast. The default palette
keeps the #0b82b8 nav-link token; the others use their own.
appearance.go: ApplyAppearance reads the yw_theme/yw_palette cookies,
AppearanceHandler stores a choice (POST only, local redirects only),
and PageHeader.AppearancePath shows a script-free <details> menu in
the navbar.
TestPaletteTokens replaces TestThemeBlocksInSync.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>