diff --git a/templates/macros/table_of_contents.html b/templates/macros/table_of_contents.html index f5cb993f7..abd0140af 100644 --- a/templates/macros/table_of_contents.html +++ b/templates/macros/table_of_contents.html @@ -2,7 +2,7 @@ {%- set toc_levels = page.extra.toc_levels | default(value=3) -%} -{% if toc_ignore_pattern %} +{% if page.extra.toc_ignore_pattern %} {%- set toc_ignore_pattern = page.extra.toc_ignore_pattern -%} {% endif %}