Drop the logo and title from the top bar
The bar now holds only Lists, Settings and Sign out, right-aligned, and is shown only when signed in, so visitors never see it on any page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0d4bbe8c8a
commit
568162202b
3 files changed
+5
-19
No files matched your search
@@ -15,7 +15,8 @@
|
||||
</head>
|
||||
<body class="{{block "bodyclass" .}}{{end}}">
|
||||
<a class="skip-link" href="#main">Skip to content</a>
|
||||
{{- if ne .Path "/"}}
|
||||
{{- /* The bar only holds the owner's links, so visitors never see it. */}}
|
||||
{{- if and .LoggedIn (ne .Path "/")}}
|
||||
{{template "topbar" .}}
|
||||
{{- else if .LoggedIn}}
|
||||
{{- /* The home page is the public face, so even signed in the bar stays
|
||||
@@ -42,11 +43,6 @@
|
||||
{{define "topbar"}}
|
||||
<header class="topbar">
|
||||
<div class="topbar-inner container">
|
||||
<a class="brand" href="/">
|
||||
{{- if .Site.AvatarURL}}<img class="brand-avatar" src="{{.Site.AvatarURL}}" alt="">{{else}}<span class="brand-mark">{{icon "deck"}}</span>{{end -}}
|
||||
<span class="brand-name">{{.Site.Title}}</span>
|
||||
</a>
|
||||
{{- if .LoggedIn}}
|
||||
<nav class="topnav" aria-label="Admin">
|
||||
<a href="/admin"{{if or (eq .Path "/admin") (hasPrefix .Path "/admin/lists")}} aria-current="page"{{end}}>{{icon "list"}}<span>Lists</span></a>
|
||||
<a href="/admin/settings"{{if eq .Path "/admin/settings"}} aria-current="page"{{end}}>{{icon "settings"}}<span>Settings</span></a>
|
||||
@@ -54,7 +50,6 @@
|
||||
<button type="submit" class="topnav-btn" title="Sign out ({{.Username}})">{{icon "logout"}}<span class="sr-only">Sign out</span></button>
|
||||
</form>
|
||||
</nav>
|
||||
{{- end}}
|
||||
</div>
|
||||
</header>
|
||||
{{end}}
|
||||
Reference in new issue
Block a user