From 6061dd27e1cbc5e43e764bef450ac560e14d4f18 Mon Sep 17 00:00:00 2001 From: Peter Mosses <18308236+pdmosses@users.noreply.github.com> Date: Mon, 26 Sep 2022 02:48:49 +0200 Subject: [PATCH] Add custom include for TOC heading (#980) Closes #961. Replays a previous attempt. --- _includes/toc_heading_custom.html | 1 + _layouts/default.html | 2 +- docs/customization.md | 22 +++++++++++++++++++--- 3 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 _includes/toc_heading_custom.html diff --git a/_includes/toc_heading_custom.html b/_includes/toc_heading_custom.html new file mode 100644 index 0000000..82a7700 --- /dev/null +++ b/_includes/toc_heading_custom.html @@ -0,0 +1 @@ +

Table of contents

diff --git a/_layouts/default.html b/_layouts/default.html index 5acf1c9..6e95317 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -159,7 +159,7 @@ layout: table_wrappers {% if page.has_children == true and page.has_toc != false %}
-

Table of contents

+ {% include toc_heading_custom.html %}