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

@@ -29,7 +29,8 @@
class="md-source"
>
<div class="md-source__icon md-icon">
{% include ".icons/" ~ config.theme.icon.repo ~ ".svg" %}
{% set icon = config.theme.icon.repo or "fontawesome/brands/git-alt" %}
{% include ".icons/" ~ icon ~ ".svg" %}
</div>
<div class="md-source__repository">
{{ config.repo_name }}