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>
8 lines
419 B
Cheetah
8 lines
419 B
Cheetah
{{define "sidebar"}}
|
|
{{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>{{end}}
|
|
{{end}}
|