Fixed icon logo in navigation

This commit is contained in:
squidfunk 2020-03-05 11:35:35 +01:00
parent ef3dc7fdc4
commit 85c498951f

View File

@ -31,10 +31,10 @@
aria-label="{{ config.site_name }}" aria-label="{{ config.site_name }}"
class="md-nav__button md-logo" class="md-nav__button md-logo"
> >
{% if config.theme.logo.icon %} {% if config.theme.logo %}
{% include ".icons/" ~ config.theme.logo.icon ~ ".svg" %}
{% else %}
<img src="{{ config.theme.logo | url }}" alt="logo" /> <img src="{{ config.theme.logo | url }}" alt="logo" />
{% else %}
{% include ".icons/" ~ config.theme.icon.logo ~ ".svg" %}
{% endif %} {% endif %}
</a> </a>
{{ config.site_name }} {{ config.site_name }}