summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2019-09-22 13:15:22 +0200
committerAlex Shpak <alex-shpak@users.noreply.github.com>2019-09-22 13:15:22 +0200
commit5d6873e9920ceb88f574a8be53a5cc996a27b753 (patch)
tree5c40604fa0592051220a1d37301753f9b1a19c67
parent74422e68968594f7f910aab25ebbf54dcf0181b2 (diff)
#73, Enable TOC and git footer for posts
-rw-r--r--layouts/posts/baseof.html4
-rw-r--r--layouts/posts/list.html4
-rw-r--r--layouts/posts/single.html4
3 files changed, 12 insertions, 0 deletions
diff --git a/layouts/posts/baseof.html b/layouts/posts/baseof.html
index 8d8c30a..ee20522 100644
--- a/layouts/posts/baseof.html
+++ b/layouts/posts/baseof.html
@@ -9,6 +9,7 @@
<body>
<input type="checkbox" class="hidden" id="menu-control" />
<main class="flex container">
+
<aside class="book-menu fixed">
{{ partial "docs/menu" . }}
</aside>
@@ -16,8 +17,11 @@
<div class="book-posts">
{{ partial "docs/mobile-header" . }}
{{ template "main" . }}
+ {{ partial "docs/git-footer" . }}
{{ partial "docs/inject/footer" . }}
</div>
+
+ {{ template "toc" . }}
</main>
{{ partial "docs/inject/body" . }}
diff --git a/layouts/posts/list.html b/layouts/posts/list.html
index 13e1ea1..ad941bd 100644
--- a/layouts/posts/list.html
+++ b/layouts/posts/list.html
@@ -19,3 +19,7 @@
{{ end }}
{{ template "_internal/pagination.html" . }}
{{ end }}
+
+{{ define "toc" }}
+
+{{ end }}
diff --git a/layouts/posts/single.html b/layouts/posts/single.html
index 9222a59..61c2130 100644
--- a/layouts/posts/single.html
+++ b/layouts/posts/single.html
@@ -10,3 +10,7 @@
{{- .Content -}}
</article>
{{ end }}
+
+{{ define "toc" }}
+ {{ partial "docs/toc" . }}
+{{ end }}