diff --git a/config.toml b/config.toml index dd3b205..7b97c9e 100644 --- a/config.toml +++ b/config.toml @@ -15,7 +15,6 @@ highlight_code = true highlight_theme = "css" [extra] -toc = true use_cdn = false timeformat = "%d %B %Y" # Default format: "31 January 2049" diff --git a/content/toc.md b/content/toc.md index 5d73c27..8b2efd5 100644 --- a/content/toc.md +++ b/content/toc.md @@ -3,6 +3,9 @@ title = "Table of Contents Test" date = "2022-11-22" [taxonomies] tags = ["test"] + +[extra] +toc = true +++ # Heading 1 diff --git a/templates/macros/macros.html b/templates/macros/macros.html index 6d69a70..bc23a38 100644 --- a/templates/macros/macros.html +++ b/templates/macros/macros.html @@ -119,7 +119,7 @@ {% endif %} {# Optional table of contents #} - {% if config.extra.toc | default(value=false) %} + {% if page.extra.toc | default(value=false) %} {% if page.toc %}