8000 Remove dublicate relbaritems block · obulat/python-docs-theme@43da2b4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 43da2b4

Browse files
committed
Remove dublicate relbaritems block
1 parent ecf73cf commit 43da2b4

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

python_docs_theme/layout.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,14 @@ <h3>{{ _('Navigation') }}</h3>
2626
<li class="nav-item nav-item-{{ loop.index }}"><a href="{{ parent.link|e }}" {% if loop.last %}{{ accesskey("U") }}{% endif %}>{{ parent.title }}</a>{{ reldelim1 }}</li>
2727
{%- endfor %}
2828
<li class="nav-item nav-item-this"><a href="{{ link|e }}">{{ title }}</a></li>
29-
{%- block relbaritems %} {% endblock %}
29+
{% block relbaritems %}
30+
{%- if pagename != "search" and builder != "singlehtml" and builder != "htmlhelp" %}
31+
<li class="right">
32+
{{ searchbox() }}
33+
{{ reldelim2 }}
34+
</li>
35+
{%- endif %}
36+
{% endblock %}
3037
</ul>
3138
</div>
3239
{%- endmacro %}
@@ -47,14 +54,7 @@ <h3>{{ _('Navigation') }}</h3>
4754

4855
{% block relbar1 %} {% if builder != 'qthelp' %} {{ relbar() }} {% endif %} {% endblock %}
4956
{% block relbar2 %} {% if builder != 'qthelp' %} {{ relbar() }} {% endif %} {% endblock %}
50-
{% block relbaritems %}
51-
{%- if pagename != "search" and builder != "singlehtml" and builder != "htmlhelp" %}
52-
<li class="right">
53-
{{ searchbox() }}
54-
{{ reldelim2 }}
55-
</li>
56-
{%- endif %}
57-
{% endblock %}
57+
5858

5959
{%- block extrahead -%}
6060
<link rel="shortcut icon" type="image/png" href="{{ pathto('_static/' + theme_root_icon, 1) }}" />

0 commit comments

Comments
 (0)
0