Skip to content

Commit 60b7bf5

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 6a0a56f commit 60b7bf5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: alabaster/about.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
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
{% endif %}
88
</a>
9-
</p>
9+
</h1>
1010
{% else %}
1111
<h1 class="logo"><a href="{{ pathto(master_doc) }}">{{ project }}</a></h1>
1212
{% endif %}

0 commit comments

Comments
 (0)