doc theme
This commit is contained in:
@@ -0,0 +1,62 @@
|
||||
|
||||
|
||||
{{ partial "custom-content-footer.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div id="navigation">
|
||||
<!-- Next prev page -->
|
||||
{{ $currentNode := . }}
|
||||
|
||||
{{ template "menu-nextprev" dict "menu" .Site.Home "currentnode" $currentNode }}
|
||||
|
||||
{{ define "menu-nextprev" }}
|
||||
{{$currentNode := .currentnode }}
|
||||
{{ if ne .menu.Params.hidden true}}
|
||||
{{if hasPrefix $currentNode.URL .menu.URL }}
|
||||
{{ $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}}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
|
||||
{{with ($.Scratch.Get "prevPage")}}
|
||||
<a class="nav nav-prev" href="{{.URL}}" title="{{.Title}}"> <i class="fa fa-chevron-left"></i></a>
|
||||
{{end}}
|
||||
{{with ($.Scratch.Get "nextPage")}}
|
||||
<a class="nav nav-next" href="{{.URL}}" title="{{.Title}}" style="margin-right: 0px;"><i class="fa fa-chevron-right"></i></a>
|
||||
{{end}}
|
||||
</div>
|
||||
|
||||
</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>
|
||||
|
||||
{{ partial "scripts.html" . }}
|
||||
{{ partial "custom-footer.html" . }}
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user