Improve page title handling and side menu templates

This commit is contained in:
Alex Shpak
2018-09-17 18:29:36 +02:00
parent 0dec1cd3a8
commit 561659ed53
6 changed files with 50 additions and 40 deletions
+2 -2
View File
@@ -1,9 +1,9 @@
<!DOCTYPE html>
<!-- {{ partial "docs/shared" }} -->
<html>
<head>
{{ partial "docs/html-head" . }}
{{ partial "docs/inject/head" . }}
<title>{{ block "title" . }} {{- .Site.Title -}} {{ end }}</title>
</head>
<body>
@@ -27,7 +27,7 @@
<div class="pure-g">
<div class="pure-u book-page markdown">
{{ block "main" . }} {{- .Content -}} {{ end }}
{{- .Content -}}
</div>
{{ $showToC := default (default true .Site.Params.BookShowToC) .Params.bookshowtoc }}
{{ if and ($showToC) (.Page.TableOfContents) }}