aboutsummaryrefslogtreecommitdiffstats
path: root/AGENTS.md
diff options
context:
space:
mode:
authorgrm <grm@eyesin.space>2026-09-18 19:18:30 +0300
committergrm <grm@eyesin.space>2026-09-18 19:18:30 +0300
commit0a248d9a0e6ef6439fca25aa854968b6b5dac2ef (patch)
tree54c770cfb8dd8c26d0fa128f584be6a8211d7181 /AGENTS.md
parentb88a7d22c8d79b30de3403c631dd2c5f67669537 (diff)
downloadblogspace-0a248d9a0e6ef6439fca25aa854968b6b5dac2ef.tar.gz
blogspace-0a248d9a0e6ef6439fca25aa854968b6b5dac2ef.tar.bz2
blogspace-0a248d9a0e6ef6439fca25aa854968b6b5dac2ef.zip
Add menu link size, spacing, a current-page mark and a spread alignment
Size and spacing selects, a choice of how the current page's link is marked (underlined as before, bold, boxed or not at all) and a fourth alignment that spreads the header's links across the bar. Alignment joins the other menu classes on the body, so the theme CSS no longer sets it; spread is justified text with a full-width last line, which old browsers lay out too, and stays out of the column menus. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Sd8UPWrvyYCLj97JexNw3A
Diffstat (limited to 'AGENTS.md')
-rw-r--r--AGENTS.md14
1 files changed, 10 insertions, 4 deletions
diff --git a/AGENTS.md b/AGENTS.md
index 4689336..4628a5a 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -215,11 +215,17 @@ internal/web/ server.go (host router, middleware, render helpers)
as tall as the brand and old browsers agree) in `currentColor`, i.e. the
header text colour; hidden on phones so a long title can wrap. The menu
links' look is switches that combine — `NavBold`, `NavUpper`, `NavUnderline`
- (`hover` | `never` | `always`) — turned into body classes by
- `Theme.NavClass` (`nav-bold nav-upper nav-ul-<kind>`) that blog.css draws;
- the theme CSS only colours the links. They replaced a `nav_style` select
+ (`hover` | `never` | `always`), `NavSize`, `NavGap`, `NavActive` (how the
+ current page's link is marked: `underline` | `bold` | `box` | `none`) and
+ `NavAlign` (`left` | `center` | `right` | `spread`) — turned into body
+ classes by `Theme.NavClass` (`nav-<align> nav-ul-<kind> nav-size-<s>
+ nav-gap-<g> nav-active-<a>`, plus `nav-bold`/`nav-upper`) that blog.css
+ draws; the theme CSS only colours the links. `spread` is justified text
+ with a full-width `::after` line, header only; `center`/`right` stay
+ unscoped (a column menu's block links centre their text, as before). They replaced a `nav_style` select
(`normal` | `uppercase` | `plain`), which `ParseTheme` still decodes and maps
- onto the switches (`omitempty`, so the next save drops it). `TitleRule` (`none` | `line` | `dots` | `dots2` | `stripes`) is the header
+ onto the switches — `uppercase` was also the small size — (`omitempty`, so
+ the next save drops it). `TitleRule` (`none` | `line` | `dots` | `dots2` | `stripes`) is the header
rule's kinds, plus a double dotted row (`dots2`: the border and an
absolutely positioned `::after` with a second one 2px above), under page and post titles (`.page-title`, `.post-title`): a body
class from `Theme.TitleRuleClass` (`titles-<kind>`) that blog.css draws