From 6560f7ae446c2180b02a7cde0ea6bbbd6e2a7239 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Fri, 3 Jan 2025 17:57:29 +0200 Subject: [PATCH] Infra: Remove "Contents" and source link from 404 (#4185) --- pep_sphinx_extensions/pep_theme/templates/page.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pep_sphinx_extensions/pep_theme/templates/page.html b/pep_sphinx_extensions/pep_theme/templates/page.html index f903b787afa..0b821712974 100644 --- a/pep_sphinx_extensions/pep_theme/templates/page.html +++ b/pep_sphinx_extensions/pep_theme/templates/page.html @@ -49,12 +49,12 @@

Python Enhancement Proposals

{{ body }}
- {%- if not pagename == "numerical" %} + {%- if not pagename.startswith(("404", "numerical")) %}