-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Override template to show logo in mobile view
- Loading branch information
1 parent
b610aa7
commit 39f3394
Showing
2 changed files
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{% extends "!layout.html" %} | ||
{% block mobile_nav %} | ||
{%- set _logo_url = logo_url|default(pathto('_static/' + (logo or ""), 1)) %} | ||
{%- set _root_doc = root_doc|default(master_doc) %} | ||
<a href="{{ pathto(_root_doc) }}"{% if not theme_logo_only %} class="icon icon-home"{% endif %}> | ||
{% if not theme_logo_only %}{{ project }}{% endif %} | ||
{%- if logo or logo_url %} | ||
<img src="{{ _logo_url }}" class="logo" alt="{{ _('Logo') }}"/> | ||
{%- endif %} | ||
</a> | ||
{% endblock %} |