Added guards for repository banner

This commit is contained in:
squidfunk 2016-10-16 17:08:34 +02:00
parent 4dbd2978a8
commit eaeba59dd8
4 changed files with 16 additions and 8 deletions

View File

@ -24,7 +24,9 @@
</div>
<div class="md-flex__cell md-flex__cell--shrink">
<div class="md-header-nav__source">
{% include "partials/source.html" %}
{% if repo_url %}
{% include "partials/source.html" %}
{% endif %}
</div>
</div>
</div>

View File

@ -6,7 +6,9 @@
{% include "partials/nav-item.html" %}
{% endfor %}
</ul>
<div class="md-nav__source">
{% include "partials/source.html" %}
</div>
{% if repo_url %}
<div class="md-nav__source">
{% include "partials/source.html" %}
</div>
{% endif %}
</nav>

View File

@ -64,7 +64,9 @@
<!-- Repository containing source -->
<div class="md-flex__cell md-flex__cell--shrink">
<div class="md-header-nav__source">
{% include "partials/source.html" %}
{% if repo_url %}
{% include "partials/source.html" %}
{% endif %}
</div>
</div>
</div>

View File

@ -29,7 +29,9 @@
{% include "partials/nav-item.html" %}
{% endfor %}
</ul>
<div class="md-nav__source">
{% include "partials/source.html" %}
</div>
{% if repo_url %}
<div class="md-nav__source">
{% include "partials/source.html" %}
</div>
{% endif %}
</nav>