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 @@
+ @@ -16,8 +17,11 @@
{{ partial "docs/mobile-header" . }} {{ template "main" . }} + {{ partial "docs/git-footer" . }} {{ partial "docs/inject/footer" . }}
+ + {{ template "toc" . }}
{{ 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 -}} {{ end }} + +{{ define "toc" }} + {{ partial "docs/toc" . }} +{{ end }}