From 05ab241002be39dcc92b19b179329ada1579e6f4 Mon Sep 17 00:00:00 2001 From: welpo Date: Fri, 27 Oct 2023 00:39:15 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(info-page):=20enable=20arbitra?= =?UTF-8?q?ry=20ToC=20location?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/info-page.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/info-page.html b/templates/info-page.html index 5c0a52f50..e92ceeb22 100644 --- a/templates/info-page.html +++ b/templates/info-page.html @@ -8,7 +8,9 @@
- {{ page.content | safe }} + {# The replace pattern is used to enable arbitrary locations for the Table of Contents #} + {# This is Philipp Oppermann's workaround: https://github.com/getzola/zola/issues/584#issuecomment-474329637 #} + {{ page.content | replace(from="", to=macros_toc::toc(page=page, header=false, language_strings=language_strings)) | safe }}