15 lines
537 B
HTML
15 lines
537 B
HTML
{{ $currentSection := .Section -}}
|
|
{{ $currentID := "" -}}
|
|
{{ with .File }}{{ $currentID = .UniqueID }}{{ end -}}
|
|
<aside class="sidebar layout__second-sidebar">
|
|
{{ range $.Site.Home.Sections -}}
|
|
<section>
|
|
<h4 class="menu"><a class="{{ if eq $currentSection .Section }}active{{ end }}" href="{{ .RelPermalink }}">{{ .Title }}</a></h4>
|
|
<ul class="menu">
|
|
{{ range .Pages -}}
|
|
<li><a class="{{ if eq $currentID .File.UniqueID }}active{{ end }}" href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
|
{{ end -}}
|
|
</ul>
|
|
</section>
|
|
{{ end -}}
|
|
</aside>
|