summaryrefslogtreecommitdiffstats
path: root/templates/layouts
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2021-04-21 17:35:15 +0200
committerVolpeon <git@volpeon.ink>2021-04-21 17:35:15 +0200
commit8941bbf9137d55912ba830fdc535949350449200 (patch)
tree2db0e41a91adbb52ec03006a84fdecb6d075020c /templates/layouts
parentBetter project previews (diff)
downloadvolpeon.ink-8941bbf9137d55912ba830fdc535949350449200.tar.gz
volpeon.ink-8941bbf9137d55912ba830fdc535949350449200.tar.bz2
volpeon.ink-8941bbf9137d55912ba830fdc535949350449200.zip
Show category icon in project previews
Diffstat (limited to 'templates/layouts')
-rw-r--r--templates/layouts/index.html5
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>