diff options
author | Volpeon <git@volpeon.ink> | 2021-04-21 17:35:15 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2021-04-21 17:35:15 +0200 |
commit | 8941bbf9137d55912ba830fdc535949350449200 (patch) | |
tree | 2db0e41a91adbb52ec03006a84fdecb6d075020c /templates/layouts/index.html | |
parent | Better project previews (diff) | |
download | volpeon.ink-8941bbf9137d55912ba830fdc535949350449200.tar.gz volpeon.ink-8941bbf9137d55912ba830fdc535949350449200.tar.bz2 volpeon.ink-8941bbf9137d55912ba830fdc535949350449200.zip |
Show category icon in project previews
Diffstat (limited to 'templates/layouts/index.html')
-rw-r--r-- | templates/layouts/index.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/layouts/index.html b/templates/layouts/index.html index c9c695a..1099d27 100644 --- a/templates/layouts/index.html +++ b/templates/layouts/index.html | |||
@@ -71,6 +71,11 @@ $body$ | |||
71 | <img class="c-project__picture" src="$it.preview.rel$" /> | 71 | <img class="c-project__picture" src="$it.preview.rel$" /> |
72 | $endif$ | 72 | $endif$ |
73 | <div class="c-project__card c-card"> | 73 | <div class="c-project__card c-card"> |
74 | $if(it.category.icon)$ | ||
75 | <svg class="c-card__icon o-icon"> | ||
76 | <use href="#icon-$it.category.icon$"></use> | ||
77 | </svg> | ||
78 | $endif$ | ||
74 | <div class="c-card__content"> | 79 | <div class="c-card__content"> |
75 | <small class="u-db">$it.category.name$</small> | 80 | <small class="u-db">$it.category.name$</small> |
76 | <strong class="u-db">$it.title$</strong> | 81 | <strong class="u-db">$it.title$</strong> |