Fixed error when only setting a single icon

This commit is contained in:
squidfunk
2020-03-11 11:24:40 +01:00
parent 4d386df1e9
commit fcbd47c2cb
11 changed files with 16 additions and 22 deletions

View File

@@ -36,7 +36,8 @@
{% if config.theme.logo %}
<img src="{{ config.theme.logo | url }}" alt="logo" />
{% else %}
{% include ".icons/" ~ config.theme.icon.logo ~ ".svg" %}
{% set icon = config.theme.icon.logo or "material/library" %}
{% include ".icons/" ~ icon ~ ".svg" %}
{% endif %}
</a>
<label