summaryrefslogtreecommitdiffstats
path: root/templates
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
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')
-rw-r--r--templates/layouts/index.html5
-rw-r--r--templates/symbols.svg9
2 files changed, 14 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>
diff --git a/templates/symbols.svg b/templates/symbols.svg
index e96fd50..acc7f4f 100644
--- a/templates/symbols.svg
+++ b/templates/symbols.svg
@@ -60,5 +60,14 @@
60 d="m12.25 5.75c0 3.5899-2.9101 6.5-6.5 6.5m3e-7 0c0 1.1046-0.89543 2-2 2s-2-0.89543-2-2 0.89543-2 2-2 2 0.89543 2 2zm8.5-8.5c0 1.1046-0.89543 2-2 2s-2-0.89543-2-2 0.89543-2 2-2 2 0.89543 2 2zm-10.5 6.4998v-7.9998" 60 d="m12.25 5.75c0 3.5899-2.9101 6.5-6.5 6.5m3e-7 0c0 1.1046-0.89543 2-2 2s-2-0.89543-2-2 0.89543-2 2-2 2 0.89543 2 2zm8.5-8.5c0 1.1046-0.89543 2-2 2s-2-0.89543-2-2 0.89543-2 2-2 2 0.89543 2 2zm-10.5 6.4998v-7.9998"
61 fill="none" stroke="currentColor" /> 61 fill="none" stroke="currentColor" />
62 </symbol> 62 </symbol>
63
64 <symbol id="icon-smile" viewBox="0 0 16 16" preserveAspectRatio="xMinYMid">
65 <path d="m11.309 9.7658c-0.63143 1.1808-1.8764 1.9842-3.3091 1.9842-1.4381 0-2.6872-0.80955-3.3163-1.9978"
66 fill="none" stroke="currentColor" />
67 <circle cx="8" cy="8" r="6.75" fill="none" stroke="currentColor" />
68 <path d="m10.25 5.75v1.5" fill="none" stroke="currentColor" />
69 <path d="m5.75 5.75v1.5" fill="none" stroke="currentColor" />
70 </symbol>
71
63 </defs> 72 </defs>
64</svg> 73</svg>