1. Tibor Tóth
  2. sphinx

Commits

Georg Brandl  committed bd9ed14

Fix #610: remove duplicate <h1> tags in agogo theme.

  • Participants
  • Parent commits d97bc8b
  • Branches default

Comments (0)

Files changed (2)

File sphinx/themes/agogo/layout.html

View file
  • Ignore whitespace
           </a></p>
         {%- endif %}
         {%- block headertitle %}
-        <h1><a href="{{ pathto(master_doc) }}">{{ shorttitle|e }}</a></h1>
+        <div class="headertitle"><a
+          href="{{ pathto(master_doc) }}">{{ shorttitle|e }}</a></div>
         {%- endblock %}
         <div class="rel">
           {%- for rellink in rellinks|reverse %}

File sphinx/themes/agogo/static/agogo.css_t

View file
  • Ignore whitespace
   padding-bottom: 10px;
 }
 
-div.header h1 {
+div.header .headertitle {
   font-family: {{ theme_headerfont }};
   font-weight: normal;
   font-size: 180%;
   letter-spacing: .08em;
+  margin-bottom: .8em;
 }
 
-div.header h1 a {
+div.header .headertitle a {
   color: white;
 }