Skip to content

Commit 6f3e344

Browse files
Merge branch 'Qeole-logo-url' (PR bashtage#133)
2 parents f5835fc + ec74f9a commit 6f3e344

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

sphinx_material/sphinx_material/header.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
class="md-header-nav__button md-logo">
77
{% if theme_logo_icon|e %}
88
<i class="md-icon">{{ theme_logo_icon }}</i>
9+
{% elif logo_url %}
10+
<img src="{{ logo_url }}" height="26"
11+
alt="{{ shorttitle|striptags|e }} logo">
912
{% elif logo %}
1013
<img src="{{ pathto('_static/' ~ logo, 1) }}" height="26"
1114
alt="{{ shorttitle|striptags|e }} logo">

sphinx_material/sphinx_material/sidebar.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
<a href="{{ pathto(master_doc)|e }}" title="{{ docstitle|striptags|e }}" class="md-nav__button md-logo">
44
{% if theme_logo_icon %}
55
<i class="md-icon">{{ theme_logo_icon }}</i>
6+
{% elif logo_url %}
7+
<img src="{{ logo_url }}" alt="{{ html_title }} logo" width="48" height="48">
68
{% else %}
79
<img src="{{ pathto('_static/' ~ logo, 1) }}" alt="{{ html_title }} logo" width="48" height="48">
810
{% endif %}

0 commit comments

Comments
 (0)