Skip to content

Commit 6560f7a

Browse files
authored
Infra: Remove "Contents" and source link from 404 (#4185)
1 parent 0a3e52c commit 6560f7a

File tree

1 file changed

+2
-2
lines changed
  • pep_sphinx_extensions/pep_theme/templates

1 file changed

+2
-2
lines changed

pep_sphinx_extensions/pep_theme/templates/page.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ <h1>Python Enhancement Proposals</h1>
4949
<article>
5050
{{ body }}
5151
</article>
52-
{%- if not pagename == "numerical" %}
52+
{%- if not pagename.startswith(("404", "numerical")) %}
5353
<nav id="pep-sidebar">
5454
<h2>Contents</h2>
5555
{{ toc }}
5656
<br>
57-
{%- if not pagename.startswith(("numerical", "pep-0000", "topic")) %}
57+
{%- if not pagename.startswith(("pep-0000", "topic")) %}
5858
<a id="source" href="https://github.com/python/peps/blob/main/peps/{{pagename}}.rst">Page Source (GitHub)</a>
5959
{%- endif %}
6060
</nav>

0 commit comments

Comments
 (0)