From 19353a51c869f4b24ef2253d856084b6e6728048 Mon Sep 17 00:00:00 2001 From: grm Date: Fri, 18 Sep 2026 12:10:26 +0300 Subject: Pair headed gizmo announcements two to a row, split by text length MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Headed gizmo boxes used to share a row equally, up to three of them. Now placeNotices pairs consecutive ones in the main column and gives the pair one of the fixed splits — 25/75, 33/67, 50/50, 67/33, 75/25 — nearest the ratio of the text each shows, so the wordier box gets the room. The bases add up to 90% so a third box never joins the row, and a side column, too narrow for two, stacks them. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01Sd8UPWrvyYCLj97JexNw3A --- internal/web/handlers_blog.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/web/handlers_blog.go') diff --git a/internal/web/handlers_blog.go b/internal/web/handlers_blog.go index c1afedb..d9caf22 100644 --- a/internal/web/handlers_blog.go +++ b/internal/web/handlers_blog.go @@ -65,7 +65,7 @@ func (s *Server) blogView(r *http.Request) (map[string]any, error) { // noNotices stands in for the placed announcements on pages that hide them // (typed, so the layout's index lookups still work). -var noNotices = map[string][]store.Section{} +var noNotices = map[string][]Notice{} // pageNum reads the ?p= of a paginated listing (1 when absent or silly). func pageNum(r *http.Request) int { -- cgit v1.2.3