diff options
author | Mardelor <remy.zirnheld@laposte.net> | 2020-11-30 14:37:16 +0300 |
---|---|---|
committer | Mardelor <remy.zirnheld@laposte.net> | 2020-11-30 14:37:16 +0300 |
commit | 6c41b3f3a3d5d075de0a715978b5079417125420 (patch) | |
tree | 713e8cc9301585d7be1311368ddfe375cd13da02 /sphinx/themes | |
parent | 1a0ae002e369a870622bff38ee2dd0360b738443 (diff) |
Update layouts to reference logo & favicon without static
Diffstat (limited to 'sphinx/themes')
-rw-r--r-- | sphinx/themes/agogo/layout.html | 2 | ||||
-rw-r--r-- | sphinx/themes/basic/opensearch.xml | 2 | ||||
-rw-r--r-- | sphinx/themes/haiku/layout.html | 4 | ||||
-rw-r--r-- | sphinx/themes/pyramid/layout.html | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/sphinx/themes/agogo/layout.html b/sphinx/themes/agogo/layout.html index 26c37b10e..cd9ff8d20 100644 --- a/sphinx/themes/agogo/layout.html +++ b/sphinx/themes/agogo/layout.html @@ -15,7 +15,7 @@ <div class="header"> {%- if logo %} <p class="logo"><a href="{{ pathto(master_doc)|e }}"> - <img class="logo" src="{{ pathto('_static/' + logo, 1)|e }}" alt="Logo"/> + <img class="logo" src="{{ pathto(logo, 1)|e }}" alt="Logo"/> </a></p> {%- endif %} {%- block headertitle %} diff --git a/sphinx/themes/basic/opensearch.xml b/sphinx/themes/basic/opensearch.xml index 0cad2967c..ad6273e44 100644 --- a/sphinx/themes/basic/opensearch.xml +++ b/sphinx/themes/basic/opensearch.xml @@ -7,7 +7,7 @@ template="{{ use_opensearch }}/{{ pathto('search') }}?q={searchTerms}"/> <LongName>{{ docstitle|e }}</LongName> {%- if favicon %} - <Image height="16" width="16" type="image/x-icon">{{ use_opensearch }}/{{ pathto('_static/' + favicon, 1)|e }}</Image> + <Image height="16" width="16" type="image/x-icon">{{ use_opensearch }}/{{ pathto(favicon, 1)|e }}</Image> {%- endif %} {% block extra %} {# Put e.g. an <Image> element here. #} {% endblock %} </OpenSearchDescription> diff --git a/sphinx/themes/haiku/layout.html b/sphinx/themes/haiku/layout.html index c47b8eccc..07f801007 100644 --- a/sphinx/themes/haiku/layout.html +++ b/sphinx/themes/haiku/layout.html @@ -36,11 +36,11 @@ {%- block haikuheader %} {%- if theme_full_logo != "false" %} <a href="{{ pathto('index') }}"> - <img class="logo" src="{{ pathto('_static/' + logo, 1)|e }}" alt="Logo"/> + <img class="logo" src="{{ pathto(logo, 1)|e }}" alt="Logo"/> </a> {%- else %} {%- if logo -%} - <img class="rightlogo" src="{{ pathto('_static/' + logo, 1)|e }}" alt="Logo"/> + <img class="rightlogo" src="{{ pathto(logo, 1)|e }}" alt="Logo"/> {%- endif -%} <h1 class="heading"><a href="{{ pathto('index') }}"> <span>{{ shorttitle|e }}</span></a></h1> diff --git a/sphinx/themes/pyramid/layout.html b/sphinx/themes/pyramid/layout.html index 02eec1cfb..097e97407 100644 --- a/sphinx/themes/pyramid/layout.html +++ b/sphinx/themes/pyramid/layout.html @@ -13,7 +13,7 @@ <div class="header" role="banner"> <div class="logo"> <a href="{{ pathto(master_doc)|e }}"> - <img class="logo" src="{{ pathto('_static/' + logo, 1)|e }}" alt="Logo"/> + <img class="logo" src="{{ pathto(logo, 1)|e }}" alt="Logo"/> </a> </div> </div> |