From e671381121a63422f0cf4d5b0842f80109a12d20 Mon Sep 17 00:00:00 2001 From: grm Date: Sun, 13 Sep 2026 00:45:06 +0300 Subject: Drop the content width option: the page is always full width With the column grid, a centred max-width box meant the main content did not fill the page when no side columns were shown. The column percentages now divide the whole page; a blogger who wants a narrower, centred main column keeps the columns' space instead. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01Sd8UPWrvyYCLj97JexNw3A --- AGENTS.md | 6 ++++-- internal/web/static/blog.css | 3 +-- internal/web/templates/dashboard/design.html | 7 +------ internal/web/templates/dashboard/layout.html | 4 ++-- internal/web/theme.go | 16 +--------------- internal/web/web_test.go | 6 +++--- 6 files changed, 12 insertions(+), 30 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 132e9c2..3a1da81 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -120,8 +120,10 @@ internal/web/ server.go (host router, middleware, render helpers) index / recent posts when a visible module needs them. A side column is laid out only when it has modules, or always with `theme.keep_columns` (`HasLeft/HasRight` → `body.has-*` - classes, which also lift the `.wrap` max-width so the page goes - full-width; column widths in the theme CSS under `@media (min-width: 701px)`); + classes; column widths in the theme CSS under `@media (min-width: 701px)`). + The page is always full width — there is no content max-width; the + column percentages divide the page and `keep_columns` is how a blogger + gets a narrower, centred main column; below 700px `.cols` becomes block flow so the order is main → left → right → footer. Everything is rendered by the `module` template in `layouts/blog.html`. New blogs get `insertDefaultModules` (title + menu diff --git a/internal/web/static/blog.css b/internal/web/static/blog.css index c785ca6..d4465a2 100644 --- a/internal/web/static/blog.css +++ b/internal/web/static/blog.css @@ -1,7 +1,7 @@ /* Public blog base styles — colours, fonts and widths come from the inline theme