From f4b96e14323ae3d2893c289298e2631331dbfd60 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Wed, 3 Mar 2021 12:41:52 +0000 Subject: [PATCH] refactor: ToC hooks --- wowchemy/layouts/partials/book_layout.html | 4 +++- .../partials/{docs_toc_foot.html => hooks/page_toc_end.html} | 0 wowchemy/layouts/partials/hooks/page_toc_start.html | 0 3 files changed, 3 insertions(+), 1 deletion(-) rename wowchemy/layouts/partials/{docs_toc_foot.html => hooks/page_toc_end.html} (100%) create mode 100644 wowchemy/layouts/partials/hooks/page_toc_start.html diff --git a/wowchemy/layouts/partials/book_layout.html b/wowchemy/layouts/partials/book_layout.html index ce132901..fa3333da 100644 --- a/wowchemy/layouts/partials/book_layout.html +++ b/wowchemy/layouts/partials/book_layout.html @@ -13,13 +13,15 @@ {{/* Show ToC by default. */}} {{ if ne .Params.toc false }}
+ {{ partial "hooks/page_toc_start" . }} + {{ .TableOfContents }} - {{ partial "docs_toc_foot" . }} + {{ partial "hooks/page_toc_end" . }}
{{ end }} diff --git a/wowchemy/layouts/partials/docs_toc_foot.html b/wowchemy/layouts/partials/hooks/page_toc_end.html similarity index 100% rename from wowchemy/layouts/partials/docs_toc_foot.html rename to wowchemy/layouts/partials/hooks/page_toc_end.html diff --git a/wowchemy/layouts/partials/hooks/page_toc_start.html b/wowchemy/layouts/partials/hooks/page_toc_start.html new file mode 100644 index 00000000..e69de29b