We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2352138 commit a865e71Copy full SHA for a865e71
pep_sphinx_extensions/pep_theme/templates/page.html
@@ -48,7 +48,12 @@ <h1>Python Enhancement Proposals</h1>
48
</header>
49
{# Mobile search box - visible only on small screens #}
50
<div id="mobile-search" class="mobile-search-container"></div>
51
+ {# Exclude noisy non-PEP pages from Pagefind indexing #}
52
+ {%- if pagename.startswith(("404", "numerical", "pep-0000", "topic")) %}
53
+ <article>
54
+ {%- else %}
55
<article data-pagefind-body>
56
+ {%- endif %}
57
{# Add pagefind meta for the title to improve search result display #}
58
<div data-pagefind-meta="title:{{ title }}" style="display:none;"></div>
59
{{ body }}
0 commit comments