aboutsummaryrefslogtreecommitdiff
path: root/layouts/docs
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/docs')
-rw-r--r--layouts/docs/baseof.html13
-rw-r--r--layouts/docs/list.html10
-rw-r--r--layouts/docs/single.html10
3 files changed, 21 insertions, 12 deletions
diff --git a/layouts/docs/baseof.html b/layouts/docs/baseof.html
index 0f951cd..805e060 100644
--- a/layouts/docs/baseof.html
+++ b/layouts/docs/baseof.html
@@ -28,21 +28,14 @@
<div class="book-page">
{{ partial "docs/mobile-header" . }}
- <article class="markdown">
- {{- .Content -}}
- </article>
+ {{ template "main" . }}
</div>
- {{ $showToC := default (default true .Site.Params.BookShowToC) .Params.bookshowtoc }}
- {{ if and ($showToC) (.Page.TableOfContents) }}
- <aside class="book-toc fixed">
- {{ partial "docs/toc" . }}
- </aside>
- {{ end }}
+ {{ template "toc" . }}
{{ partial "docs/inject/body" . }}
{{ template "_internal/google_analytics_async.html" . }}
</main>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/layouts/docs/list.html b/layouts/docs/list.html
index a54943b..ee001c9 100644
--- a/layouts/docs/list.html
+++ b/layouts/docs/list.html
@@ -1 +1,9 @@
-{{ define "." }} {{ end }} \ No newline at end of file
+{{ define "main" }}
+<article class="markdown">
+ {{- .Content -}}
+</article>
+{{ end }}
+
+{{ define "toc" }}
+ {{ partial "docs/toc" . }}
+{{ end }}
diff --git a/layouts/docs/single.html b/layouts/docs/single.html
index a54943b..ee001c9 100644
--- a/layouts/docs/single.html
+++ b/layouts/docs/single.html
@@ -1 +1,9 @@
-{{ define "." }} {{ end }} \ No newline at end of file
+{{ define "main" }}
+<article class="markdown">
+ {{- .Content -}}
+</article>
+{{ end }}
+
+{{ define "toc" }}
+ {{ partial "docs/toc" . }}
+{{ end }}