hugo-book-theme/layouts/docs/baseof.html

45 lines
No EOL
1.1 KiB
HTML

<!DOCTYPE html>
<!-- {{ partial "docs/shared" }} -->
<html>
<head>
{{ partial "docs/html-head" . }}
{{ partial "docs/inject/head" . }}
</head>
<body>
<div class="pure-g">
<div class="pure-u book-nav">
<nav role="navigation">
{{ partial "docs/nav-brand" . }}
{{ 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>
</div>
<div class="pure-u book-content">
<div class="pure-g">
<div class="pure-u book-page markdown">
{{- .Content -}}
</div>
{{ $showToC := default (default true .Site.Params.BookShowToC) .Params.bookshowtoc }}
{{ if and ($showToC) (.Page.TableOfContents) }}
<div class="pure-u book-toc">
{{ partial "docs/toc" . }}
</div>
{{ end }}
</div>
</div>
</div>
{{ partial "docs/inject/body" . }}
</body>
</html>