summaryrefslogtreecommitdiff
path: root/src/_components
diff options
context:
space:
mode:
Diffstat (limited to 'src/_components')
-rw-r--r--src/_components/gif_row.vto10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/_components/gif_row.vto b/src/_components/gif_row.vto
new file mode 100644
index 0000000..ebc56f8
--- /dev/null
+++ b/src/_components/gif_row.vto
@@ -0,0 +1,10 @@
+{{ for gif of gifs }}
+ {{
+ set img = `<img src="/imgs/gifs/${gif.name}" alt="${gif.alt}" width="88" height="31" loading="lazy" decoding="async">`
+ }}
+ {{ if gif.href }}
+ <a href="{{ gif.href }}">{{ img }}</a>
+ {{ else }}
+ {{ img }}
+ {{ /if }}
+{{ /for }}