fix broken post layout (WIP) by changing to njk for now

This commit is contained in:
madrilene 2024-02-16 15:34:31 +01:00
parent ca43605a96
commit 34e34852fa

View file

@ -17,17 +17,14 @@ gallery:
caption: 'A large blue (Phengaris arion)'
---
Gallery popups usting the `<dialog>` element:
<p>Gallery popups using the <code>dialog</code> element:</p>
{% include "components/gallery.njk" %}
Loop through images without additional interactivity:
<p>Loop through images without additional interactivity:</p>
<ul class="gallery"
role="list" style="padding: 0;">
{%- for item in gallery -%}
<li>
{% eleventyImage item.image, item.alt %}
</li>
{%- endfor -%}
<ul class="gallery" role="list" style="padding: 0;">
{%- for item in gallery -%}
<li>{% eleventyImage item.image, item.alt %}</li>
{%- endfor -%}
</ul>