hugo-book/layouts/docs/baseof.html

48 lines
1.1 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>
<input type="checkbox" style="display: none" id="menu-control" />
2018-09-27 23:12:07 +00:00
<div class="container">
2018-09-27 23:12:07 +00:00
<aside class="menu fixed">
<nav role="navigation">
2018-09-29 23:04:22 +00:00
{{ partial "docs/brand" . }}
2018-09-27 23:12:07 +00:00
{{ partial "docs/inject/menu-before" . }}
{{ if .Site.Params.BookMenuBundle }}
{{ partial "docs/menu-bundle" . }}
{{ else }}
{{ partial "docs/menu-filetree" . }}
{{ end }}
2018-09-27 23:12:07 +00:00
{{ partial "docs/inject/menu-after" . }}
</nav>
2018-09-27 23:12:07 +00:00
</aside>
<div class="page">
<div class="header">
2018-09-27 23:12:07 +00:00
{{ partial "docs/mobile-header" . }}
2018-09-24 15:03:23 +00:00
</div>
2018-09-27 23:12:07 +00:00
<article class="markdown">
{{- .Content -}}
2018-09-27 23:12:07 +00:00
</article>
2018-09-05 14:22:04 +00:00
</div>
{{ $showToC := default (default true .Site.Params.BookShowToC) .Params.bookshowtoc }}
{{ if and ($showToC) (.Page.TableOfContents) }}
2018-09-27 23:12:07 +00:00
<aside class="toc fixed">
{{ partial "docs/toc" . }}
2018-09-27 23:12:07 +00:00
</aside>
{{ end }}
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>