Skip to content

Commit

Permalink
Infra: Remove "Contents" and source link from 404 (#4185)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored Jan 3, 2025
1 parent 0a3e52c commit 6560f7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pep_sphinx_extensions/pep_theme/templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ <h1>Python Enhancement Proposals</h1>
<article>
{{ body }}
</article>
{%- if not pagename == "numerical" %}
{%- if not pagename.startswith(("404", "numerical")) %}
<nav id="pep-sidebar">
<h2>Contents</h2>
{{ toc }}
<br>
{%- if not pagename.startswith(("numerical", "pep-0000", "topic")) %}
{%- if not pagename.startswith(("pep-0000", "topic")) %}
<a id="source" href="https://github.com/python/peps/blob/main/peps/{{pagename}}.rst">Page Source (GitHub)</a>
{%- endif %}
</nav>
Expand Down

0 comments on commit 6560f7a

Please sign in to comment.