aboutsummaryrefslogtreecommitdiffstats
path: root/internal/web/theme.go
diff options
context:
space:
mode:
authorgrm <grm@eyesin.space>2026-09-17 21:47:37 +0300
committergrm <grm@eyesin.space>2026-09-17 21:47:37 +0300
commiteaa6dc04d05ad24dea5a7b211928cddb6db5aa73 (patch)
treee5f54fc6543fb968265ed6a04bad9b45c7c070a8 /internal/web/theme.go
parent2a347ced1b4ea8c24440f646df35207c3a3597ac (diff)
downloadblogspace-eaa6dc04d05ad24dea5a7b211928cddb6db5aa73.tar.gz
blogspace-eaa6dc04d05ad24dea5a7b211928cddb6db5aa73.tar.bz2
blogspace-eaa6dc04d05ad24dea5a7b211928cddb6db5aa73.zip
Add a colons kind to the rule under titles, and stop its label wrapping
The design form's hint on "Rule under titles" wrapped to three lines and pushed the select below its neighbours; it is a note under the row now. "Colons" is a row of ":" (a long string in an ::after, clipped to the title's width), the look of the reference site's dotted borders in text. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Sd8UPWrvyYCLj97JexNw3A
Diffstat (limited to 'internal/web/theme.go')
-rw-r--r--internal/web/theme.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/web/theme.go b/internal/web/theme.go
index 0dc8eff..8d9bf98 100644
--- a/internal/web/theme.go
+++ b/internal/web/theme.go
@@ -53,7 +53,7 @@ type Theme struct {
PostsPerPage int `json:"posts_per_page"` // on listings and tag pages; one of postsPerPageChoices
ListStyle string `json:"list_style"` // full | summary (see summary.go)
PostImage string `json:"post_image"` // where the post page shows the featured image: top | bottom | list (listings only)
- TitleRule string `json:"title_rule"` // none | line | dots | stripes, drawn under page and post titles in the link colour
+ TitleRule string `json:"title_rule"` // none | line | dots | colons | stripes, drawn under page and post titles in the link colour
TagHash bool `json:"tag_hash"` // tags are listed as #name
FooterBg string `json:"footer_bg"`
@@ -190,7 +190,7 @@ func (t *Theme) normalize() {
t.PostsPerPage = pickInt(t.PostsPerPage, postsPerPageChoices...)
t.ListStyle = pick(t.ListStyle, "full", "summary")
t.PostImage = pick(t.PostImage, "top", "bottom", "list")
- t.TitleRule = pick(t.TitleRule, "none", "line", "dots", "stripes")
+ t.TitleRule = pick(t.TitleRule, "none", "line", "dots", "colons", "stripes")
t.FooterBg = color(t.FooterBg, d.FooterBg)
t.FooterColor = color(t.FooterColor, d.FooterColor)
t.FooterAlign = pick(t.FooterAlign, "center", "left")