aboutsummaryrefslogtreecommitdiffstats
path: root/internal/web/web_test.go
diff options
context:
space:
mode:
authorgrm <grm@eyesin.space>2026-09-17 21:54:38 +0300
committergrm <grm@eyesin.space>2026-09-17 21:54:38 +0300
commitb83e241a331d24718527467e70ae9879f16a71d1 (patch)
treece4a1c2abefa81e0efc1f220a8d7513c78a8bf8b /internal/web/web_test.go
parenteaa6dc04d05ad24dea5a7b211928cddb6db5aa73 (diff)
downloadblogspace-b83e241a331d24718527467e70ae9879f16a71d1.tar.gz
blogspace-b83e241a331d24718527467e70ae9879f16a71d1.tar.bz2
blogspace-b83e241a331d24718527467e70ae9879f16a71d1.zip
Replace the colons title rule with a double dotted border
A row of ":" characters did not read as a rule. "Double dots" is what the reference site does: the 3px dotted border and an absolutely positioned ::after carrying a second one 2px above it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Sd8UPWrvyYCLj97JexNw3A
Diffstat (limited to 'internal/web/web_test.go')
-rw-r--r--internal/web/web_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/web/web_test.go b/internal/web/web_test.go
index c0a68c5..ffa9db7 100644
--- a/internal/web/web_test.go
+++ b/internal/web/web_test.go
@@ -144,8 +144,8 @@ func TestTitleRuleAndTagHash(t *testing.T) {
if th.TitleRuleClass() != "titles-dots" || !th.TagHash || !strings.Contains(th.CSS(), ".page-title, .post-title { border-color:#b03a48; }") {
t.Errorf("from form: %+v\n%s", th, th.CSS())
}
- if th = ThemeFromForm(th, url.Values{"title_rule": {"colons"}}); th.TitleRuleClass() != "titles-colons" {
- t.Errorf("colons: %+v", th)
+ if th = ThemeFromForm(th, url.Values{"title_rule": {"dots2"}}); th.TitleRuleClass() != "titles-dots2" {
+ t.Errorf("dots2: %+v", th)
}
th = ThemeFromForm(th, url.Values{"title_rule": {"neon"}})
if th.TitleRuleClass() != "" || th.TagHash {