diff options
| author | grm <grm@eyesin.space> | 2026-09-19 00:04:08 +0300 |
|---|---|---|
| committer | grm <grm@eyesin.space> | 2026-09-19 00:04:08 +0300 |
| commit | c42c56108ebac6673ec5c86f9f0d51f31e8eb2bd (patch) | |
| tree | 61e20aa8973a3ef628f62063da65245c62ac23af /internal/web/layout.go | |
| parent | 96336d8bacd2bdf81acf9a18e2fe57be9d4e9b4f (diff) | |
| download | blogspace-c42c56108ebac6673ec5c86f9f0d51f31e8eb2bd.tar.gz blogspace-c42c56108ebac6673ec5c86f9f0d51f31e8eb2bd.tar.bz2 blogspace-c42c56108ebac6673ec5c86f9f0d51f31e8eb2bd.zip | |
Remove the menu fold
The header menu no longer folds into a ☰ button: the nav_fold and
nav_fold_label options, Layout.Fold/BurgerAt, the burger markup and its
checkbox, the fold rules in blog.css and the measuring script on the
public page are gone, and the Design tab's preview only sizes its frame
again. The public page runs no script of its own once more.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Sd8UPWrvyYCLj97JexNw3A
Diffstat (limited to 'internal/web/layout.go')
| -rw-r--r-- | internal/web/layout.go | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/internal/web/layout.go b/internal/web/layout.go index d201758..91728ed 100644 --- a/internal/web/layout.go +++ b/internal/web/layout.go @@ -130,12 +130,6 @@ type Layout struct { // A header search box sits in the menu row when there is one, so the two // header modules need to know about each other. HeaderMenu, HeaderSearch bool - // Fold says the header menu folds into a button (theme nav_fold, and a - // menu in the header); BurgerAt is the index in Header of the module that - // carries the button: the title or logo block just before the menu, so it - // sits at the right of the brand, else the menu bar itself. - Fold bool - BurgerAt int } // buildLayout groups modules by area, dropping areas the theme has switched off. @@ -162,18 +156,6 @@ func buildLayout(t Theme, mods []store.Module) Layout { l.Footer = append(l.Footer, m) } } - if t.NavFold { - for j, m := range l.Header { - if m.Kind != "menu" { - continue - } - l.Fold, l.BurgerAt = true, j - if j > 0 && (l.Header[j-1].Kind == "title" || l.Header[j-1].Kind == "logo" && t.Logo != "") { // a logo module without a logo renders nothing - l.BurgerAt = j - 1 - } - break - } - } l.HasLeft = t.KeepColumns || len(l.Left) > 0 l.HasRight = t.KeepColumns || len(l.Right) > 0 return l |
