From f0dd3d9a9d96c3a8590d3c344eafc3db0a9fa7e5 Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Thu, 22 Sep 2022 12:09:41 +0200 Subject: [PATCH] Add option to disable TOC Set `notoc` in [extra]. --- templates/macros.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/macros.html b/templates/macros.html index 81aefd3..7b58f9d 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -35,7 +35,7 @@ {% endmacro %} {% macro toc() %} - {% if page.toc %} + {% if page.toc and not page.extra.notoc %}