From baabcb634bdffb8623eacc410e8707a3b4afe2b5 Mon Sep 17 00:00:00 2001 From: Emilio Ziniades Date: Sun, 12 May 2024 15:54:40 +0200 Subject: feat(table of contents): Add table of contents This feature is disabled by default, but can be enabled/disabled globally or per-page. Zola already provides `page.toc`, this PR simply adds a macro to recursively render that data in nested `ul`s. It also establishes some configuration options to display it and set a maximum headers level. --- content/zola.md | 1 + 1 file changed, 1 insertion(+) (limited to 'content/zola.md') diff --git a/content/zola.md b/content/zola.md index 5458750..bbce998 100644 --- a/content/zola.md +++ b/content/zola.md @@ -1,5 +1,6 @@ +++ title = "Zola" +extra.hide_table_of_contents = true +++ ## No dependencies -- cgit 1.4.1