From 009d58f4be7b98fd24ce47673602ff40ee4e76e7 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sun, 18 Aug 2024 09:21:37 -0500 Subject: [PATCH] wip: gallery --- templates/index.html | 6 ++++++ templates/shortcodes/gallery.html | 10 ++++++++++ 2 files changed, 16 insertions(+) create mode 100644 templates/shortcodes/gallery.html diff --git a/templates/index.html b/templates/index.html index 77fed72..c6b16bd 100644 --- a/templates/index.html +++ b/templates/index.html @@ -35,6 +35,12 @@ Projects Blog + {% endblock %} diff --git a/templates/shortcodes/gallery.html b/templates/shortcodes/gallery.html new file mode 100644 index 0000000..d171d84 --- /dev/null +++ b/templates/shortcodes/gallery.html @@ -0,0 +1,10 @@ +
+{% for asset in page.assets -%} + {%- if asset is matching("[.](jpg|png)$") -%} + {% set image = resize_image(path=asset, width=240, height=180) %} + + + + {%- endif %} +{%- endfor %} +