ContainerImage.Pinniped/site/themes/pinniped/layouts/partials/docs-sidebar.html

17 lines
674 B
HTML
Raw Normal View History

2020-11-06 22:42:57 +00:00
<div class="side-nav">
<ul>
{{- $currentPage := . }}
{{- range .Site.Menus.docs }}
<li>
<a href="{{ .URL }}" class="{{ cond ($currentPage.IsMenuCurrent "docs" .) "active" "" }}">{{ .Name }}</a>
{{- if .HasChildren }}
<ul class="sub-menu">
{{- range .Children }}
<li><a href="{{ .URL }}"{{ if $currentPage.IsMenuCurrent "docs" . }} class="active"{{ end }} >{{ .Name }}</a></li>
{{- end }}
</ul>
{{- end }}
</li>
{{- end }}
2020-11-06 22:42:57 +00:00
</ul>
</div>