Skip to content

Commit a23ba52

Browse files
authored
Merge pull request #253 from gyanranjanpanda/fix/home-button-link
Fix sidebar home button link (Issue #248)
2 parents 4ba4bc6 + 6a9aafc commit a23ba52

File tree

1 file changed

+27
-6
lines changed

1 file changed

+27
-6
lines changed

docs/source/_templates/layout.html

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,29 @@
11
{% extends "!layout.html" %}
22

3-
{% block menu %}
4-
{{ super() }}
5-
<div class="toc-index-div">
6-
<a href="{{pathto('genindex.html', 1)}}" class="reference internal toc-index">Index</a>
7-
</div>
8-
{% endblock %}
3+
{%- block sidebartitle %}
4+
{%- set _logo_url = logo_url|default(pathto('_static/' + (logo or ""), 1)) %}
5+
<a href="https://aboutcode.org" class="icon icon-home">
6+
{% if not theme_logo_only %}{{ project }}{% endif %}
7+
{%- if logo or logo_url %}
8+
<img src="{{ _logo_url }}" class="logo" alt="{{ _('Logo') }}" />
9+
{%- endif %}
10+
</a>
11+
12+
{%- if READTHEDOCS or DEBUG %}
13+
{%- if theme_version_selector or theme_language_selector %}
14+
<div class="switch-menus">
15+
<div class="version-switch"></div>
16+
<div class="language-switch"></div>
17+
</div>
18+
{%- endif %}
19+
{%- endif %}
20+
21+
{%- include "searchbox.html" %}
22+
{%- endblock %}
23+
24+
{% block menu %}
25+
{{ super() }}
26+
<div class="toc-index-div">
27+
<a href="{{pathto('genindex.html', 1)}}" class="reference internal toc-index">Index</a>
28+
</div>
29+
{% endblock %}

0 commit comments

Comments
 (0)