Skip to content

Commit a58f13a

Browse files
committed
Fix layout of logo.
Having <h1> inside <p> led some browsers to believe that the HTML code was ill-formed. Thus, they inserted </p> before <h1>, causing the logo to be pushed away from the logo name.
1 parent ea9e92b commit a58f13a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

alabaster/about.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{% if theme_logo %}
2-
<p class="logo">
2+
<h1 class="logo">
33
<a href="{{ pathto(master_doc) }}">
44
<img class="logo" src="{{ pathto('_static/' ~ theme_logo, 1) }}" alt="Logo" />
55
{% if theme_logo_name|lower == 'true' %}
6-
<h1 class="logo logo-name">{{ project }}</h1>
6+
<span class="logo logo-name">{{ project }}</span>
77
{% elif theme_logo_name|lower != 'false' %}
8-
<h1 class="logo logo-name">{{ theme_logo_name }}</h1>
8+
<span class="logo logo-name">{{ theme_logo_name }}</span>
99
{% endif %}
1010
</a>
11-
</p>
11+
</h1>
1212
{% else %}
1313
<h1 class="logo"><a href="{{ pathto(master_doc) }}">{{ project }}</a></h1>
1414
{% endif %}

0 commit comments

Comments
 (0)