Skip to content

Commit

Permalink
Fix layout of logo.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
silene committed May 6, 2022
1 parent 6a0a56f commit 60b7bf5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions alabaster/about.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{% if theme_logo %}
<p class="logo">
<h1 class="logo">
<a href="{{ pathto(master_doc) }}">
<img class="logo" src="{{ pathto('_static/' ~ theme_logo, 1) }}" alt="Logo"/>
{% if theme_logo_name|lower == 'true' %}
<h1 class="logo logo-name">{{ project }}</h1>
<span class="logo logo-name">{{ project }}</span>
{% endif %}
</a>
</p>
</h1>
{% else %}
<h1 class="logo"><a href="{{ pathto(master_doc) }}">{{ project }}</a></h1>
{% endif %}
Expand Down

0 comments on commit 60b7bf5

Please sign in to comment.