diff options
Diffstat (limited to '_includes/components/imageGrid.njk')
-rw-r--r-- | _includes/components/imageGrid.njk | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/_includes/components/imageGrid.njk b/_includes/components/imageGrid.njk new file mode 100644 index 0000000..ccb596d --- /dev/null +++ b/_includes/components/imageGrid.njk @@ -0,0 +1,7 @@ +{# <div class="grid grid-cols-3 auto-rows-[minmax(0,50dvh)]"> #} +<div class="grid md:grid-cols-3 h-screen" style="grid-template-rows: calc(50vh - 40px) calc(50vh - 40px); grid-auto-rows: 50vh;"> + {% for image in images[folder] %} + <a data-fslightbox="first-lightbox" href="{{ image.path }}" ><img src="{{ image.path }}" alt="{{ image.alt }}" class="w-full h-full object-cover object-center block"></a> + {% endfor %} +</div> +
\ No newline at end of file |