mirror of
https://github.com/mentos1386/zdravko.git
synced 2024-11-27 01:33:37 +00:00
28 lines
567 B
Cheetah
28 lines
567 B
Cheetah
{{define "main"}}
|
|
{{ $title := "" }}
|
|
{{ $path := "" }}
|
|
{{ if ne nil .SettingsPage }}
|
|
{{ $title = .SettingsPage.Title }}
|
|
{{ $path = .SettingsPage.Path }}
|
|
{{ end }}
|
|
|
|
<div class="grid grid-cols-[1fr_100%] gap-8">
|
|
<ul class="sidebar">
|
|
{{range .SettingsPages}}
|
|
<li>
|
|
<a
|
|
{{$active := eq .Path $path }}
|
|
{{if $active}}aria-current="true"{{end}}
|
|
href="{{.Path}}"
|
|
class="{{if $active}}active{{end}}">
|
|
{{.Title}}
|
|
</a>
|
|
</li>
|
|
{{end}}
|
|
</ul>
|
|
|
|
<div>
|
|
{{template "settings" .}}
|
|
</div>
|
|
</div>
|
|
{{end}}
|