diff --git a/docs/_includes/layouts/pages/basic.njk b/docs/_includes/layouts/pages/basic.njk index 3ec146033b..d782e48fd5 100755 --- a/docs/_includes/layouts/pages/basic.njk +++ b/docs/_includes/layouts/pages/basic.njk @@ -20,8 +20,8 @@ layout: layouts/base.njk {% include 'partials/component/sidenav.njk' %} {%- if hasToc -%} - {%- set tags = tocTags or ['h2'] -%} - {%- set table = content | toc(tags=tocTags) -%} + {%- set tagsForThisPageToc = tocTags or ['h2'] -%} + {%- set table = content | toc(tags=tagsForThisPageToc) -%} {%- endif -%}