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

50 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>
2018-11-07 12:54:18 +01:00
2018-09-05 16:22:04 +02:00
<head>
{{ partial "docs/html-head" . }}
{{ partial "docs/inject/head" . }}
2018-09-05 16:22:04 +02:00
</head>
<body>
<input type="checkbox" style="display: none" id="menu-control" />
2018-09-30 01:22:39 +02:00
<main>
2018-09-28 01:12:07 +02:00
<aside class="menu fixed">
<nav role="navigation">
2018-09-30 01:04:22 +02:00
{{ partial "docs/brand" . }}
2018-09-28 01:12:07 +02:00
{{ partial "docs/inject/menu-before" . }}
2018-11-07 12:54:18 +01:00
{{ if .Site.Params.BookMenuBundle }}
{{ partial "docs/menu-bundle" . }}
{{ else }}
{{ partial "docs/menu-filetree" . }}
{{ end }}
2018-11-07 12:54:18 +01:00
2018-09-28 01:12:07 +02:00
{{ partial "docs/inject/menu-after" . }}
</nav>
2018-09-28 01:12:07 +02:00
</aside>
2018-09-30 01:22:39 +02:00
<div class="content">
<header>
2018-09-28 01:12:07 +02:00
{{ partial "docs/mobile-header" . }}
2018-09-30 01:22:39 +02:00
</header>
2018-09-28 01:12:07 +02:00
<article class="markdown">
{{- .Content -}}
2018-09-28 01:12:07 +02:00
</article>
2018-09-05 16:22:04 +02:00
</div>
{{ $showToC := default (default true .Site.Params.BookShowToC) .Params.bookshowtoc }}
{{ if and ($showToC) (.Page.TableOfContents) }}
2018-09-28 01:12:07 +02:00
<aside class="toc fixed">
{{ partial "docs/toc" . }}
2018-09-28 01:12:07 +02:00
</aside>
{{ end }}
2018-09-30 01:22:39 +02:00
</main>
{{ partial "docs/inject/body" . }}
2018-11-07 12:54:18 +01:00
2018-09-05 16:22:04 +02:00
</body>
2018-11-07 12:54:18 +01:00
2018-09-05 16:22:04 +02:00
</html>