hackertours-theme/layouts/partials/sidebar.html
Fredrik Jonsson b7977e1c28 First commit.
2017-03-09 14:29:29 +01:00

14 lines
552 B
HTML

{{ $currentSection := .Section }}
{{ $currentID := .UniqueID }}
<aside class="layout-3col__right-sidebar" role="complementary">
{{ range $section, $taxonomy := .Site.Sections }}
{{ if ne $section "" }}
<h4 class="menu"><a class="{{ if eq $currentSection $section }}active{{ end }}" href="/{{ urlize $section }}">{{ humanize $section }}</a></h4>
<ul class="menu">
{{ range $taxonomy.Pages }}
<li><a class="{{ if eq $currentID .UniqueID }}active{{ end }}" href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
{{ end }}
</ul>
{{ end }}
{{ end }}
</aside>