From ca6abef84698ff3e455259cf72c21140d5a0efe7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deniz=20Ak=C5=9Fim=C5=9Fek?= Date: Mon, 24 Apr 2023 18:35:56 +0300 Subject: [PATCH] fix build failing --- www/_includes/chapter.njk | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/www/_includes/chapter.njk b/www/_includes/chapter.njk index 1e04d64..e1901cc 100644 --- a/www/_includes/chapter.njk +++ b/www/_includes/chapter.njk @@ -47,26 +47,26 @@ layout: layout.njk -{% if asciidoc.getSections().length %} +{% macro toc(block, level=0, url="") %} + {% set isPart = level == 0 and is_whole_book %} + {% set isChapter = level == 1 and is_whole_book %} + +{% endmacro %} +{% if asciidoc and asciidoc.getSections().length %}
Contents - {% macro toc(block, level=0, url="") %} - {% set isPart = level == 0 and is_whole_book %} - {% set isChapter = level == 1 and is_whole_book %} - - {% endmacro %} {{ asciidoc and toc(asciidoc, 0) }}