diff --git a/templates/shortcodes/gallery.html b/templates/shortcodes/gallery.html new file mode 100644 index 0000000..dbef034 --- /dev/null +++ b/templates/shortcodes/gallery.html @@ -0,0 +1,16 @@ +{# {{ gallery(images=[], cols=2, caption="") }} #} + +{% if not cols %} + {% set cols = 2 %} +{% endif %} + + + + {% for image in images %} + {% set url = image | first %} + {% set alt = image | last %} + + {% endfor %} + + {% if caption %}{{ caption }}{% endif %} + \ No newline at end of file