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 %} +