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

45 lines
1.1 KiB
HTML
Raw Normal View History

2018-09-05 16:22:04 +02:00
<!DOCTYPE html>
2018-09-18 01:35:54 +02:00
{{- partial "docs/shared" -}}
2018-09-05 16:22:04 +02:00
<html>
<head>
{{ partial "docs/html-head" . }}
{{ partial "docs/inject/head" . }}
2018-09-05 16:22:04 +02:00
</head>
<body>
<div class="pure-g">
2018-09-05 16:22:04 +02:00
<div class="pure-u book-nav">
2018-09-12 14:36:16 +02:00
<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>
2018-09-05 16:22:04 +02:00
</div>
<div class="pure-u book-content">
<div class="pure-g">
2018-09-05 16:22:04 +02:00
<div class="pure-u book-page markdown">
{{- .Content -}}
2018-09-05 16:22:04 +02:00
</div>
2018-09-13 18:07:55 +02:00
{{ $showToC := default (default true .Site.Params.BookShowToC) .Params.bookshowtoc }}
{{ if and ($showToC) (.Page.TableOfContents) }}
2018-09-05 16:22:04 +02:00
<div class="pure-u book-toc">
{{ partial "docs/toc" . }}
2018-09-05 16:22:04 +02:00
</div>
{{ end }}
2018-09-05 16:22:04 +02:00
</div>
</div>
2018-09-05 16:22:04 +02:00
</div>
{{ partial "docs/inject/body" . }}
2018-09-05 16:22:04 +02:00
</body>
</html>