2017-07-27 19:42:07 +00:00
|
|
|
{{ if .Params.chapter }}
|
|
|
|
</div> <!-- end chapter-->
|
|
|
|
{{ end }}
|
2020-09-11 13:57:25 +00:00
|
|
|
</div>
|
2017-11-04 06:37:37 +00:00
|
|
|
{{ partial "custom-comments.html" . }}
|
2016-03-17 11:01:39 +00:00
|
|
|
</div>
|
2017-03-13 22:31:13 +00:00
|
|
|
|
2016-03-17 11:01:39 +00:00
|
|
|
<div id="navigation">
|
2017-07-27 19:42:07 +00:00
|
|
|
<!-- Next prev page -->
|
|
|
|
{{ $currentNode := . }}
|
2020-09-11 13:57:25 +00:00
|
|
|
|
2017-07-27 19:42:07 +00:00
|
|
|
{{ template "menu-nextprev" dict "menu" .Site.Home "currentnode" $currentNode }}
|
2020-09-11 13:57:25 +00:00
|
|
|
|
2017-07-27 19:42:07 +00:00
|
|
|
{{ define "menu-nextprev" }}
|
|
|
|
{{$currentNode := .currentnode }}
|
|
|
|
{{ if ne .menu.Params.hidden true}}
|
2019-06-13 09:05:25 +00:00
|
|
|
{{if hasPrefix $currentNode.RelPermalink .menu.RelPermalink }}
|
2017-07-27 19:42:07 +00:00
|
|
|
{{ $currentNode.Scratch.Set "NextPageOK" "OK" }}
|
|
|
|
{{ $currentNode.Scratch.Set "prevPage" ($currentNode.Scratch.Get "prevPageTmp") }}
|
|
|
|
{{else}}
|
|
|
|
{{if eq ($currentNode.Scratch.Get "NextPageOK") "OK"}}
|
|
|
|
{{ $currentNode.Scratch.Set "NextPageOK" nil }}
|
|
|
|
{{ $currentNode.Scratch.Set "nextPage" .menu }}
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{ $currentNode.Scratch.Set "prevPageTmp" .menu }}
|
|
|
|
|
|
|
|
{{ $currentNode.Scratch.Set "pages" .menu.Pages }}
|
|
|
|
{{ if .menu.IsHome}}
|
|
|
|
{{ $currentNode.Scratch.Set "pages" .menu.Sections }}
|
|
|
|
{{ else if .menu.Sections}}
|
|
|
|
{{ $currentNode.Scratch.Set "pages" (.menu.Pages | union .menu.Sections) }}
|
|
|
|
{{end}}
|
|
|
|
{{ $pages := ($currentNode.Scratch.Get "pages") }}
|
|
|
|
|
|
|
|
{{ range $pages.ByWeight }}
|
|
|
|
{{ template "menu-nextprev" dict "menu" . "currentnode" $currentNode }}
|
|
|
|
{{end}}
|
2017-03-13 21:16:20 +00:00
|
|
|
{{ end }}
|
2017-03-13 23:55:59 +00:00
|
|
|
{{ end }}
|
2017-07-27 19:42:07 +00:00
|
|
|
|
2018-03-19 10:40:10 +00:00
|
|
|
{{$showPrevNext := (and (not .Params.disableNextPrev) (not .Site.Params.disableNextPrev))}}
|
|
|
|
{{if $showPrevNext}}
|
|
|
|
{{with ($.Scratch.Get "prevPage")}}
|
2019-06-13 09:05:25 +00:00
|
|
|
<a class="nav nav-prev" href="{{.RelPermalink}}" title="{{.Title}}"> <i class="fa fa-chevron-left"></i></a>
|
2018-03-19 10:40:10 +00:00
|
|
|
{{end}}
|
|
|
|
{{with ($.Scratch.Get "nextPage")}}
|
2019-06-13 09:05:25 +00:00
|
|
|
<a class="nav nav-next" href="{{.RelPermalink}}" title="{{.Title}}" style="margin-right: 0px;"><i class="fa fa-chevron-right"></i></a>
|
2018-03-19 10:40:10 +00:00
|
|
|
{{end}}
|
|
|
|
{{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>
|
2020-09-11 13:57:25 +00:00
|
|
|
|
2016-03-17 11:01:39 +00:00
|
|
|
<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>
|
2017-08-16 21:14:58 +00:00
|
|
|
<script src="{{"js/clipboard.min.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
|
|
|
|
<script src="{{"js/perfect-scrollbar.min.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
|
|
|
|
<script src="{{"js/perfect-scrollbar.jquery.min.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
|
2017-11-23 18:46:56 +00:00
|
|
|
<script src="{{"js/jquery.sticky.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
|
2021-07-02 21:01:38 +00:00
|
|
|
<script src="{{"js/jquery.svg.pan.zoom.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
|
2017-08-16 21:14:58 +00:00
|
|
|
<script src="{{"js/featherlight.min.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
|
2019-02-07 13:32:46 +00:00
|
|
|
<script src="{{"js/modernizr.custom-3.6.0.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
|
2020-09-11 13:57:25 +00:00
|
|
|
{{ if (or (and (ne .Params.disableMermaid nil) (not .Params.disableMermaid)) (not .Site.Params.disableMermaid)) }}
|
2021-07-02 15:18:19 +00:00
|
|
|
{{ if isset .Params "custommermaidurl" }}
|
2020-09-11 13:57:25 +00:00
|
|
|
<script src="{{ .Params.customMermaidURL }}"></script>
|
2021-07-02 15:18:19 +00:00
|
|
|
{{ else if isset .Site.Params "custommermaidurl" }}
|
2020-09-11 13:57:25 +00:00
|
|
|
<script src="{{ .Site.Params.customMermaidURL }}"></script>
|
|
|
|
{{ else }}
|
2021-07-02 20:23:55 +00:00
|
|
|
<script src="{{"js/mermaid.min.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
|
2020-09-11 13:57:25 +00:00
|
|
|
{{ end }}
|
2020-09-20 12:36:54 +00:00
|
|
|
{{ if isset .Params "mermaidinitialize" }}
|
|
|
|
{{ $.Scratch.Set "mermaidInitialize" .Params.mermaidInitialize }}
|
|
|
|
{{ else if isset .Site.Params "mermaidinitialize" }}
|
|
|
|
{{ $.Scratch.Set "mermaidInitialize" .Site.Params.mermaidInitialize }}
|
|
|
|
{{ else }}
|
|
|
|
{{ $.Scratch.Set "mermaidInitialize" "{ \"startOnLoad\": true }" }}
|
|
|
|
{{ end }}
|
2020-09-11 13:57:25 +00:00
|
|
|
<script>
|
2020-09-13 09:49:31 +00:00
|
|
|
if (mermaid) {
|
2021-07-02 19:58:16 +00:00
|
|
|
mermaid.mermaidAPI.initialize( Object.assign( { "securityLevel": "antiscript" }, JSON.parse({{ $.Scratch.Get "mermaidInitialize" }}), { startOnLoad: false } ) );
|
2020-09-13 09:49:31 +00:00
|
|
|
}
|
2020-09-11 13:57:25 +00:00
|
|
|
</script>
|
|
|
|
{{ end }}
|
2021-07-02 19:58:16 +00:00
|
|
|
<script src="{{"js/relearn.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
|
2017-08-16 22:57:44 +00:00
|
|
|
{{ partial "custom-footer.html" . }}
|
2016-03-17 11:01:39 +00:00
|
|
|
</body>
|
|
|
|
</html>
|