From b233445a73168994087356d45b5dc7dd6a07aa8e Mon Sep 17 00:00:00 2001 From: grm Date: Thu, 17 Sep 2026 21:37:46 +0300 Subject: Add a rule under page and post titles, and tags shown with a # in front MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two Design tab options in the Posts section. The title rule reuses the header rule's kinds (line, dots, stripes): a body class blog.css draws from — width and style only, so the theme CSS's link colour is not reset — ending at a floated thumbnail instead of running under it. The tag hash is applied everywhere tags are listed: under posts, in both tag modules and in the tag page's title. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01Sd8UPWrvyYCLj97JexNw3A --- internal/web/templates.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'internal/web/templates.go') diff --git a/internal/web/templates.go b/internal/web/templates.go index c2f9847..ea39a6d 100644 --- a/internal/web/templates.go +++ b/internal/web/templates.go @@ -116,6 +116,13 @@ var funcs = template.FuncMap{ "filemd": fileMarkdown, "add": func(a, b int) int { return a + b }, "sub": func(a, b int) int { return a - b }, + // tagname is a tag as the theme lists it: with a # in front when TagHash is on + "tagname": func(t Theme, name string) string { + if t.TagHash { + return "#" + name + } + return name + }, "deref": func(p *string) string { if p == nil { return "" -- cgit v1.2.3