hugo-book-theme/layouts/_default/baseof.html
tyler71 e037b7c70f mobile toc menu (#121)
* Implement TOC for mobile
* Uses Page title as label
* Label entries so that tapping TOC will hide menu
* Switch to medium breakpoint
* Correct tos -> toc
* toc-menu-control -> toc-control
2020-01-13 17:44:24 +01:00

31 lines
674 B
HTML

<!DOCTYPE html>
<html lang="{{ .Site.Language.Lang }}">
<head>
{{ partial "docs/html-head" . }}
{{ partial "docs/inject/head" . }}
</head>
<body>
<input type="checkbox" class="hidden" id="toc-control" />
<input type="checkbox" class="hidden" id="menu-control" />
<main class="flex container">
<aside class="book-menu fixed">
{{ partial "docs/menu" . }}
</aside>
<div class="book-page">
{{ partial "docs/mobile-header" . }}
{{ template "main" . }}
{{ partial "docs/footer" . }}
{{ partial "docs/inject/footer" . }}
</div>
{{ template "toc" . }}
</main>
{{ partial "docs/inject/body" . }}
</body>
</html>