blob: bdc1c077f7df0deaf027f1808d66d5056afbb4b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
{{ $current := . }}
{{ $root := site.GetPage "/hardenedpass" }}
<ul class="space-y-4 text-sm">
<li><a href="{{ $root.RelPermalink }}" class="font-mono text-accent">{{ $root.Title }}</a></li>
{{ range $root.Sections.ByWeight }}
<li>
<a href="{{ .RelPermalink }}" class="font-mono text-accent">{{ .Title }}</a>
<ul class="mt-2 space-y-1 border-l border-border pl-3">
{{ range .RegularPages.ByWeight }}
<li>
{{ if $current.Eq . }}
<a href="{{ .RelPermalink }}" aria-current="page" class="text-accent font-bold">{{ .Title }}</a>
{{ else }}
<a href="{{ .RelPermalink }}" class="text-text-dim hover:text-accent">{{ .Title }}</a>
{{ end }}
</li>
{{ end }}
</ul>
</li>
{{ end }}
</ul>
|