16 lines
556 B
HTML
16 lines
556 B
HTML
{{ $currentSection := .Section -}}
|
|
{{ $currentID := "" -}}
|
|
{{ with .File }}{{ $currentID = .UniqueID }}{{ end -}}
|
|
<aside class="sidebar layout__second-sidebar">
|
|
{{ range site.Sections -}}
|
|
<section class="menu">
|
|
<p class="title"><strong><a href="{{ .RelPermalink }}"{{ if eq $currentSection .Section }} aria-current="page"{{ end }}>{{ .Title }}</a></strong></p>
|
|
<ul>
|
|
{{ range .Pages -}}
|
|
<li><a href="{{ .RelPermalink }}"{{ if eq $currentID .File.UniqueID }} aria-current="page"{{ end }}>{{ .Title }}</a></li>
|
|
{{ end -}}
|
|
</ul>
|
|
</section>
|
|
{{ end -}}
|
|
</aside>
|