Skip to content

Commit

Permalink
docs: don't show toc when content not found (#16095)
Browse files Browse the repository at this point in the history
  • Loading branch information
amareshsm committed Jul 8, 2022
1 parent ba19e3f commit 49ca3f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/_includes/components/docs-toc.html
@@ -1,5 +1,5 @@
<nav class="docs-toc c-toc" aria-labelledby="js-toc-label">
{%- if all_content | toc | safe -%}
{%- if all_content | toc | safe | length -%}
<h2 class="c-toc__label" id="js-toc-label">Table of Contents</h2>
<div class="c-toc__panel" id="js-toc-panel">
{{ all_content | toc | safe }}
Expand Down

0 comments on commit 49ca3f0

Please sign in to comment.