diff --git a/README.md b/README.md index 206d365..7e770db 100644 --- a/README.md +++ b/README.md @@ -96,10 +96,12 @@ German when `Lang` starts with `de`) with one POST form whose buttons submit `theme` or `palette`. `AppearanceHandler` stores the choice in the cookies `yw_theme`/`yw_palette` (path `BasePath/`, a year, `HttpOnly`, `SameSite=Lax`) and redirects to `back`, but only to a path -inside the UI. Any other method gets 405. `ApplyAppearance` ignores unknown cookie -values, so whatever the consumer set before stays the default. A -consumer with its own switch (e.g. `yareco`'s) can keep it and just set -`Theme`/`Palette`. +inside the UI. Any other method gets 405. `ApplyAppearance` ignores +unknown cookie values, so whatever the consumer set before stays the +default. A consumer whose middleware wants a CSRF token on every POST +puts the hidden field into `AppearanceFormHTML`, which is rendered +inside the menu's form. A consumer with its own switch (e.g. `yareco`'s) +can keep it and just set `Theme`/`Palette`. **Adding a palette:** a `:root[data-palette="..."]` block in `static/style.css`, a constant and an entry in `Palettes` in @@ -152,7 +154,7 @@ concurrent-edit conflict during the initial rollout) and can produce a force-move an existing tag again for any future change — always cut a new one, even for a one-line fix. -## PageHeader fields (current as of v0.2.0) +## PageHeader fields (current as of v0.2.4) `Title`, `AppName` (lowercase product name for `