2016-03-17 11:01:39 +00:00
< nav id = "sidebar" >
< div id = "header-wrapper" >
< div id = "header" >
{{ partial "logo.html" . }}
2016-03-17 16:48:18 +00:00
{{ if .Site.Params.search }}
2016-07-06 08:15:55 +00:00
{{ partial "search.html" . }}
2016-03-17 16:48:18 +00:00
{{ end }}
2016-03-17 11:01:39 +00:00
< / div >
2016-03-25 10:53:03 +00:00
< / div >
2016-03-17 11:01:39 +00:00
2016-03-25 10:53:03 +00:00
< div class = "highlightable" >
< ul class = "topics" >
{{ $page := . }}
2016-10-14 07:30:59 +00:00
{{ if .Site.Params.menu }}
{{ $.Scratch.Set "menuItems" (slice) }}
{{ range $i, $key := .Site.Params.menu }}
{{ if isset $page.Site.Sections $key }}
{{ $.Scratch.Add "menuItems" $key }}
{{ else }}
< li class = "dd-item" > < div class = "notices warning" > < p >
{{ printf "Unknown section '%s' found in site menu" $key }}
< / p > < / div > < / li >
{{ end }}
{{ end }}
{{ else }}
{{ $.Scratch.Set "menuItems" .Site.Sections }}
{{ end }}
{{ $menuItems := $.Scratch.Get "menuItems" }}
{{ range $i, $key := $menuItems }}
2016-03-25 10:53:03 +00:00
{{ if ne $key "" }}
2016-10-14 07:30:59 +00:00
{{ if not $.Site.Params.menu }}
{{ $.Scratch.Set "currentItem" (index $page.Site.Sections $i) }}
{{ else }}
{{ $.Scratch.Set "currentItem" (index $page.Site.Sections $key) }}
{{ end }}
{{ $value := $.Scratch.Get "currentItem" }}
2016-03-25 10:53:03 +00:00
{{ $first := (index $value 0).Page }}
2016-03-17 11:01:39 +00:00
2016-03-25 10:53:03 +00:00
< li class = "dd-item {{ if eq $page.RelPermalink $first.RelPermalink }}active{{ end }} {{if in $page.RelPermalink $first.RelPermalink }}parent{{ end }}" data-nav-id = "{{ $first.RelPermalink }}" >
< a href = "{{ $first.RelPermalink }}" >
< span >
{{ if isset $first.Params "icon" }}
{{ printf $first.Params.icon | safeHTML }}
2016-03-21 15:58:15 +00:00
{{ end }}
2016-03-25 10:53:03 +00:00
{{ $first.Title }}
2016-05-24 15:23:11 +00:00
{{ if $page.Site.Params.showVisitedLinks}}
2016-05-23 20:18:57 +00:00
< i class = "fa fa-check read-icon" > < / i >
2016-05-24 14:08:53 +00:00
{{ end }}
2016-03-25 10:53:03 +00:00
< / span >
< / a >
2016-10-14 07:30:59 +00:00
{{ if gt $value.Len 1}}
2016-03-25 10:53:03 +00:00
< ul >
2016-10-14 07:30:59 +00:00
{{ range $k, $p := $value }}
2016-03-25 10:53:03 +00:00
{{ if gt $k 0 }}
2016-10-14 07:30:59 +00:00
< li class = "dd-item {{ if eq $page.RelPermalink $p.Page.RelPermalink }}active{{ end }}" data-nav-id = "{{ $p.Page.RelPermalink }}" >
< a href = "{{ $p.Page.RelPermalink }}" >
< span > {{ $p.Page.Title }} {{ if $page.Site.Params.showVisitedLinks}} < i class = "fa fa-check read-icon" > {{ end }} < / i > < / span >
2016-03-25 10:53:03 +00:00
< / a >
< / li >
2016-03-17 11:01:39 +00:00
{{ end }}
{{ end }}
< / ul >
2016-03-25 10:53:03 +00:00
{{ end }}
< / li >
{{ end }}
{{ end }}
< / ul >
< hr >
2016-05-24 14:08:53 +00:00
{{ if .Site.Params.showVisitedLinks}}
2016-05-23 20:18:57 +00:00
< a class = "padding" href = "#" data-clear-history-toggle = "" > < i class = "fa fa-fw fa-history" > < / i > Clear History< / a >
2016-05-24 14:08:53 +00:00
{{ end }}
2016-03-25 10:53:03 +00:00
< section id = "footer" >
< p > Built with < a href = "https://github.com/matcornic/hugo-theme-learn" > < i class = "fa fa-heart" > < / i > < / a > from < a href = "http://getgrav.org" > Grav< / a > and < a href = "http://gohugo.io/" > Hugo< / a > < / p >
< / section >
2016-03-17 11:01:39 +00:00
< / div >
< / nav >