Skip to content

Commit 53d6d59

Browse files
authored
Infra: remove two of the five instances of title at top of pages (#2532)
* Infra: remove one of the four instances of title at top of pages * Infra: remove another of the five instances of title at top of pages * Infra: but keep PEP number in the breadcrumbs
1 parent 5949604 commit 53d6d59

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

pep_sphinx_extensions/pep_theme/static/style.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,9 +309,6 @@ dl.footnote > dd {
309309
#pep-sidebar ul a {
310310
text-decoration: none;
311311
}
312-
#toc-title {
313-
font-weight: bold;
314-
}
315312
#source {
316313
padding-bottom: 2rem;
317314
font-weight: bold;

pep_sphinx_extensions/pep_theme/templates/page.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ <h1>Python Enhancement Proposals</h1>
2424
<ul class="breadcrumbs">
2525
<li><a href="https://www.python.org/" title="The Python Programming Language">Python</a> &raquo; </li>
2626
<li><a href="{{ pathto("pep-0000") }}">PEP Index</a> &raquo; </li>
27-
<li>{{ title }}</li>
27+
<li>{{ title.split("–")[0].strip() }}</li>
2828
</ul>
2929
<button aria-label="Toggle dark mode" onClick="toggleColourScheme()"></button>
3030
</header>
@@ -33,7 +33,6 @@ <h1>Python Enhancement Proposals</h1>
3333
</article>
3434
<nav id="pep-sidebar">
3535
<h2>Contents</h2>
36-
<p id="toc-title">{{ title }}</p>
3736
{{ toc }}
3837
<br />
3938
{%- if not sourcename.startswith("pep-0000") %}

0 commit comments

Comments
 (0)