hugo-book/layouts/docs/baseof.html

45 lines
1.0 KiB
HTML
Raw Normal View History

2018-09-05 14:22:04 +00:00
<!DOCTYPE html>
2018-09-17 23:35:54 +00:00
{{- partial "docs/shared" -}}
2018-09-05 14:22:04 +00:00
<html>
<head>
{{ partial "docs/html-head" . }}
{{ partial "docs/inject/head" . }}
2018-09-05 14:22:04 +00:00
</head>
<body>
2018-09-24 15:03:23 +00:00
<div class="header">
{{ partial "docs/header" . }}
</div>
<input type="checkbox" style="display: none" id="nav-control" />
<nav role="navigation" class="menu">
{{ partial "docs/inject/nav-before" . }}
{{ if .Site.Params.BookMenuBundle }}
{{ partial "docs/nav-bundle" . }}
{{ else }}
{{ partial "docs/nav-filetree" . }}
{{ end }}
{{ partial "docs/inject/nav-after" . }}
</nav>
2018-09-24 15:03:23 +00:00
<div>
<div class="pure-g content">
<div class="pure-u-1 pure-u-lg-2-3 page markdown">
{{- .Content -}}
</div>
{{ $showToC := default (default true .Site.Params.BookShowToC) .Params.bookshowtoc }}
{{ if and ($showToC) (.Page.TableOfContents) }}
<div class="pure-u-1 pure-u-lg-1-3 pure-hidden-md toc">
{{ partial "docs/toc" . }}
2018-09-05 14:22:04 +00:00
</div>
2018-09-24 15:03:23 +00:00
{{ end }}
2018-09-05 14:22:04 +00:00
</div>
2018-09-05 14:22:04 +00:00
</div>
2018-09-24 15:03:23 +00:00
{{ partial "docs/inject/body" . }}
2018-09-05 14:22:04 +00:00
</body>
</html>