2016-03-17 11:01:39 +00:00
|
|
|
|
2017-03-13 23:10:33 +00:00
|
|
|
{{ $isChapter := or (eq .Kind "section") (.Params.chapter)}}
|
|
|
|
{{ if $isChapter }}
|
2016-03-17 11:01:39 +00:00
|
|
|
</div> <!-- end chapter-->
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-03-17 13:10:43 +00:00
|
|
|
|
2017-03-13 23:55:59 +00:00
|
|
|
{{ if $.Site.Params.autoNav }}
|
2017-03-13 22:31:13 +00:00
|
|
|
{{ $.Scratch.Set "_sectionpages" (slice) }}
|
2017-03-13 23:10:33 +00:00
|
|
|
{{ if $.Site.Params.menu }}
|
|
|
|
{{ range $sname := $.Site.Params.menu }}
|
|
|
|
{{ $.Scratch.Add "_sectionpages" ($.Site.GetPage "section" $sname) }}
|
|
|
|
{{ end }}
|
|
|
|
{{ else }}
|
|
|
|
{{ range $sname, $spages := .Site.Sections }}
|
|
|
|
{{ $.Scratch.Add "_sectionpages" ($.Site.GetPage "section" $sname) }}
|
|
|
|
{{ end }}
|
|
|
|
{{ $.Scratch.Set "_sectionpages" (sort ($.Scratch.Get "_sectionpages") "Weight") }}
|
2017-03-13 22:31:13 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ $.Scratch.Set "_allpages" (slice) }}
|
2017-03-13 23:10:33 +00:00
|
|
|
{{ range $.Scratch.Get "_sectionpages" }}
|
|
|
|
{{ if .Content }}
|
|
|
|
{{ $.Scratch.Add "_allpages" . }}
|
|
|
|
{{ end }}
|
2017-03-13 22:31:13 +00:00
|
|
|
{{ range index $.Site.Sections .Section }}
|
|
|
|
{{ $.Scratch.Add "_allpages" .Page }}
|
2017-03-13 21:16:20 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2017-03-13 23:55:59 +00:00
|
|
|
{{ end }}
|
2017-03-13 22:31:13 +00:00
|
|
|
|
2016-03-17 11:01:39 +00:00
|
|
|
<div id="navigation">
|
2017-03-13 23:55:59 +00:00
|
|
|
{{ if $.Site.Params.autoNav }}
|
|
|
|
{{ $allpages := $.Scratch.Get "_allpages" }}
|
2017-03-13 22:31:13 +00:00
|
|
|
{{ range $index, $element := $allpages }}
|
2017-03-13 23:55:59 +00:00
|
|
|
{{ $uniqueid := ($.Scratch.Get "uniqueId" | default $.UniqueID ) }}
|
|
|
|
{{if eq $element.UniqueID $uniqueid }}
|
2017-03-13 21:16:20 +00:00
|
|
|
{{ if not (isset $.Params "prev") }}
|
2017-03-13 22:31:13 +00:00
|
|
|
{{ with index $allpages (sub $index 1) }}
|
2017-03-26 17:15:36 +00:00
|
|
|
<a class="nav nav-prev" href="{{ .URL }}"> <i class="fa fa-chevron-left"></i></a>
|
2017-03-13 21:16:20 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ if not (isset $.Params "next") }}
|
2017-03-13 22:31:13 +00:00
|
|
|
{{ with index $allpages (add $index 1) }}
|
2017-03-26 17:15:36 +00:00
|
|
|
<a class="nav nav-next" href="{{ .URL }}" style="margin-right: 0px;"><i class="fa fa-chevron-right"></i></a>
|
2017-03-13 21:16:20 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2017-03-13 23:55:59 +00:00
|
|
|
{{ end }}
|
2017-03-13 21:16:20 +00:00
|
|
|
{{ with .Params.prev }}<a class="nav nav-prev" href="{{ $.Site.BaseURL }}{{ . }}"> <i class="fa fa-chevron-left"></i></a>{{ end }}
|
|
|
|
{{ with .Params.next }}<a class="nav nav-next" href="{{ $.Site.BaseURL }}{{ . }}" style="margin-right: 0px;"><i class="fa fa-chevron-right"></i></a>{{ end }}
|
2016-03-17 11:01:39 +00:00
|
|
|
</div>
|
2016-03-17 13:10:43 +00:00
|
|
|
|
2016-03-17 11:01:39 +00:00
|
|
|
</section>
|
|
|
|
<div style="left: -1000px; overflow: scroll; position: absolute; top: -1000px; border: none; box-sizing: content-box; height: 200px; margin: 0px; padding: 0px; width: 200px;">
|
|
|
|
<div style="border: none; box-sizing: content-box; height: 200px; margin: 0px; padding: 0px; width: 200px;"></div>
|
|
|
|
</div>
|
2016-12-19 23:04:24 +00:00
|
|
|
<script src="{{ .Site.BaseURL }}/js/clipboard.min.js"></script>
|
|
|
|
<script src="{{ .Site.BaseURL }}/js/perfect-scrollbar.min.js"></script>
|
|
|
|
<script src="{{ .Site.BaseURL }}/js/perfect-scrollbar.jquery.min.js"></script>
|
|
|
|
<script src="{{ .Site.BaseURL }}/js/jquery.sticky-kit.min.js"></script>
|
|
|
|
<script src="{{ .Site.BaseURL }}/js/featherlight.min.js"></script>
|
|
|
|
<script src="{{ .Site.BaseURL }}/js/html5shiv-printshiv.min.js"></script>
|
|
|
|
<script src="{{ .Site.BaseURL }}/js/highlight.pack.js"></script>
|
2016-04-10 22:09:03 +00:00
|
|
|
<script>hljs.initHighlightingOnLoad();</script>
|
2016-12-19 23:04:24 +00:00
|
|
|
<script src="{{ .Site.BaseURL }}/js/modernizr.custom.71422.js"></script>
|
|
|
|
<script src="{{ .Site.BaseURL }}/js/learn.js"></script>
|
|
|
|
<script src="{{ .Site.BaseURL }}/js/hugo-learn.js"></script>
|
2016-04-10 22:09:03 +00:00
|
|
|
{{ partial "script.html" . }}
|
2016-03-17 11:01:39 +00:00
|
|
|
</body>
|
|
|
|
</html>
|