1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-28 01:10:58 +01:00

Handle when no config.repo_url is available

This commit is contained in:
Brendan Abbott 2016-12-19 13:57:45 +10:00
parent d2285b4d92
commit 66f8aae310
2 changed files with 12 additions and 12 deletions

View File

@ -34,13 +34,13 @@
{% endblock %}
</div>
<div class="md-flex__cell md-flex__cell--shrink">
<div class="md-header-nav__source">
{% block repo %}
{% if config.repo_url %}
{% block repo %}
{% if config.repo_url %}
<div class="md-header-nav__source">
{% include "partials/source.html" %}
{% endif %}
{% endblock %}
</div>
</div>
{% endif %}
{% endblock %}
</div>
</div>
</nav>

View File

@ -74,13 +74,13 @@
<!-- Repository containing source -->
<div class="md-flex__cell md-flex__cell--shrink">
<div class="md-header-nav__source">
{% block repo %}
{% if config.repo_url %}
{% block repo %}
{% if config.repo_url %}
<div class="md-header-nav__source">
{% include "partials/source.html" %}
{% endif %}
{% endblock %}
</div>
</div>
{% endif %}
{% endblock %}
</div>
</div>
</nav>