Skip to content

Commit

Permalink
Merge pull request #9271 from rdt12/pyramid-logo
Browse files Browse the repository at this point in the history
Closes #9270: pyramid theme generates incorrect logo links
  • Loading branch information
tk0miya committed May 29, 2021
2 parents 8ec06e9 + 02d3e98 commit d961a38
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ Bugs fixed
:confval:`man_make_section_directory` is not correct
* #9224: ``:param:`` and ``:type:`` fields does not support a type containing
whitespace (ex. ``Dict[str, str]``)
* #9270: html theme : pyramid theme generates incorrect logo links

Testing
--------
Expand Down
4 changes: 2 additions & 2 deletions sphinx/themes/pyramid/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
{% endblock %}

{% block header %}
{%- if logo %}
{%- if logo_url %}
<div class="header" role="banner">
<div class="logo">
<a href="{{ pathto(root_doc)|e }}">
<img class="logo" src="{{ pathto(logo, 1)|e }}" alt="Logo"/>
<img class="logo" src="{{ logo_url|e }}" alt="Logo"/>
</a>
</div>
</div>
Expand Down

0 comments on commit d961a38

Please sign in to comment.