Sidebar: no container without NavItems
A page that clears NavItems (yasta's login page) still got the empty nav container, which the modern style draws as a card: an empty frame where the sidebar would be. The container is now left out. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3e99ada77b
commit
8964cec3e2
2 files changed
+18
-2
No files matched your search
@@ -1,7 +1,7 @@
|
||||
{{define "sidebar"}}
|
||||
<div class="nav flex-column pt-2">
|
||||
{{if .NavItems}}<div class="nav flex-column pt-2">
|
||||
{{range .SidebarEntries}}{{if .GroupHead}}<div class="yw-nav-group">{{.GroupHead}}</div>
|
||||
{{end}}<a class="nav-link{{if .Active}} active{{end}}" href="{{$.BasePath}}{{.Href}}"{{if .Active}} aria-current="page"{{end}}>{{if .IconSVG}}<span class="yw-nav-icon" aria-hidden="true">{{.IconSVG}}</span>{{end}}{{.Label}}</a>
|
||||
{{end}}
|
||||
</div>
|
||||
</div>{{end}}
|
||||
{{end}}
|
||||
Reference in new issue
Block a user