Skip to content

Commit 49ca3f0

Browse files
authored
docs: don't show toc when content not found (#16095)
1 parent ba19e3f commit 49ca3f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/_includes/components/docs-toc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<nav class="docs-toc c-toc" aria-labelledby="js-toc-label">
2-
{%- if all_content | toc | safe -%}
2+
{%- if all_content | toc | safe | length -%}
33
<h2 class="c-toc__label" id="js-toc-label">Table of Contents</h2>
44
<div class="c-toc__panel" id="js-toc-panel">
55
{{ all_content | toc | safe }}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy