diff options
| author | grm <grm@eyesin.space> | 2026-09-17 20:15:14 +0300 |
|---|---|---|
| committer | grm <grm@eyesin.space> | 2026-09-17 20:15:14 +0300 |
| commit | 69912c4ac04ada3286c09400ce523d5d3ab4cfb4 (patch) | |
| tree | 409c59ce65e1612d587aa698bb5e25c2cf7bfc0b /internal/web/templates/dashboard | |
| parent | 616aa3a934951260d5daa81ab3d0f93fbc94ebee (diff) | |
| download | blogspace-69912c4ac04ada3286c09400ce523d5d3ab4cfb4.tar.gz blogspace-69912c4ac04ada3286c09400ce523d5d3ab4cfb4.tar.bz2 blogspace-69912c4ac04ada3286c09400ce523d5d3ab4cfb4.zip | |
Add a header rule beside the title or logo, and plain menu links
gizmolab's header is a logo with a striped rule filling the rest of the
row, and a menu of plain underlined links under it; nothing in the Design
tab could draw either. The rule (line, dots or stripes) is a theme option
drawn in the header text colour beside the title and logo modules — on
both sides when the header is centred — as table cells, so it is as tall
as the brand and old browsers lay it out the same; it is hidden on phones
so a long title can wrap. The menu's link style gains "plain, underlined"
next to bold and uppercase.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Sd8UPWrvyYCLj97JexNw3A
Diffstat (limited to 'internal/web/templates/dashboard')
| -rw-r--r-- | internal/web/templates/dashboard/design.html | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/web/templates/dashboard/design.html b/internal/web/templates/dashboard/design.html index c22a35e..5fd3fbe 100644 --- a/internal/web/templates/dashboard/design.html +++ b/internal/web/templates/dashboard/design.html @@ -101,7 +101,14 @@ <option value="normal"{{if eq $t.TitleSize "normal"}} selected{{end}}>{{t "Normal"}}</option> <option value="large"{{if eq $t.TitleSize "large"}} selected{{end}}>{{t "Large"}}</option> </select></label> + <label>{{t "Rule beside the title"}}<br><select name="header_rule"> + <option value="none"{{if eq $t.HeaderRule "none"}} selected{{end}}>{{t "None"}}</option> + <option value="line"{{if eq $t.HeaderRule "line"}} selected{{end}}>{{t "Line"}}</option> + <option value="dots"{{if eq $t.HeaderRule "dots"}} selected{{end}}>{{t "Dots"}}</option> + <option value="stripes"{{if eq $t.HeaderRule "stripes"}} selected{{end}}>{{t "Stripes"}}</option> + </select></label> </div> + <p class="muted small">{{t "The rule is drawn in the text colour next to the title and logo modules, filling the rest of the row — on both sides when the header is centred. Wide screens only."}}</p> {{template "imagepick" (dict "name" "header_image" "current" $t.HeaderImage "sub" $sub "images" .Data.images "names" .Data.imageNames "label" (t "Banner image") "hint" (t "Shown across the top of the header whenever one is chosen."))}} <div class="row"><label>{{t "Banner height"}}<br><select name="header_image_height"> <option value="short"{{if eq $t.HeaderImageHeight "short"}} selected{{end}}>{{t "Short"}}</option> @@ -143,6 +150,7 @@ <label>{{t "Link style"}}<br><select name="nav_style"> <option value="normal"{{if eq $t.NavStyle "normal"}} selected{{end}}>{{t "Normal"}}</option> <option value="uppercase"{{if eq $t.NavStyle "uppercase"}} selected{{end}}>{{t "Uppercase, spaced"}}</option> + <option value="plain"{{if eq $t.NavStyle "plain"}} selected{{end}}>{{t "Plain, underlined"}}</option> </select></label> <label>{{t "Background"}}<br><input type="color" name="nav_bg" value="{{$t.NavBg}}"></label> <label>{{t "Text"}}<br><input type="color" name="nav_text" value="{{$t.NavText}}"></label> |
