aboutsummaryrefslogtreecommitdiffstats
path: root/internal/web/web_test.go
diff options
context:
space:
mode:
authorgrm <grm@eyesin.space>2026-09-13 00:45:06 +0300
committergrm <grm@eyesin.space>2026-09-13 00:45:06 +0300
commite671381121a63422f0cf4d5b0842f80109a12d20 (patch)
tree9c6d218ea58930fecdd9520beb48b5afad9642e1 /internal/web/web_test.go
parentd11e4c9544f544b3a024c7ac705a674b4096cf50 (diff)
downloadblogspace-e671381121a63422f0cf4d5b0842f80109a12d20.tar.gz
blogspace-e671381121a63422f0cf4d5b0842f80109a12d20.tar.bz2
blogspace-e671381121a63422f0cf4d5b0842f80109a12d20.zip
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 <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.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/web/web_test.go b/internal/web/web_test.go
index b8f761a..a988a23 100644
--- a/internal/web/web_test.go
+++ b/internal/web/web_test.go
@@ -82,18 +82,18 @@ func TestThemeNormalizeAndCSS(t *testing.T) {
if !th.HeaderOn || !th.LeftOn || !th.RightOn || !th.FooterOn || th.LeftWidth != 15 {
t.Errorf("old theme layout defaults: %+v", th)
}
- f := url.Values{"bg_color": {"#ABCDEF"}, "content_width": {"wide"}, "bg_image": {"not-a-uuid"}, "logo_size": {"large"},
+ f := url.Values{"bg_color": {"#ABCDEF"}, "bg_image": {"not-a-uuid"}, "logo_size": {"large"},
"link_hover": {"#ff0000"}, "nav_hover": {"#00ff00"}, "nav_hover_custom": {"on"}, "nav_style": {"uppercase"}, "nav_align": {"center"},
"link_underline": {"hover"}, "heading_font": {"serif"}, "content_style": {"flat"}, "content_padding": {"roomy"}, "date_format": {"iso"}}
th = ThemeFromForm(DefaultTheme(), f)
- if th.BgColor != "#abcdef" || th.ContentWidth != "wide" || th.BgImage != "" || th.LogoSize != "large" {
+ if th.BgColor != "#abcdef" || th.BgImage != "" || th.LogoSize != "large" {
t.Errorf("from form: %+v", th)
}
if th.LinkHover != "" || th.NavHover != "#00ff00" || th.ShowDates || th.DateFormat != "iso" {
t.Errorf("hover checkbox / unticked checkboxes: %+v", th)
}
css := th.CSS()
- for _, want := range []string{"background-color:#abcdef", "max-width:1100px", "text-transform:uppercase", ".site-nav a:hover { color:#00ff00", "a:hover { text-decoration:underline",
+ for _, want := range []string{"background-color:#abcdef", "text-transform:uppercase", ".site-nav a:hover { color:#00ff00", "a:hover { text-decoration:underline",
"h1, h2, h3, h4, h5, h6 { font-family:Georgia", "text-align:center", "border-radius:0", "padding:2.2em 3em", "@media (max-width: 700px)", ".logo { max-height:140px"} {
if !strings.Contains(css, want) {
t.Errorf("css missing %q:\n%s", want, css)