Implement image galleries
This commit is contained in:
24
content/galleries.njk
Normal file
24
content/galleries.njk
Normal file
@ -0,0 +1,24 @@
|
||||
---
|
||||
pagination:
|
||||
data: galleries
|
||||
size: 1
|
||||
alias: gallery
|
||||
layout: layouts/base.njk
|
||||
tags: gallery
|
||||
structuredData: none
|
||||
eleventyComputed:
|
||||
title: "{{ gallery.title }}"
|
||||
permalink: "/gallery/{{ gallery.title | slugify }}/"
|
||||
description: "{{ gallery.description }}"
|
||||
---
|
||||
<h1>{{ gallery.title }}</h1>
|
||||
<p class="page-block nodropcap">{{ gallery.description }}</p>
|
||||
<section class="gallery-images">
|
||||
{% for picture in gallery.pictures %}
|
||||
<a href="/gallery/{{ gallery.title | slugify }}/{{ picture.filename | slugify }}/">
|
||||
<wc-card class="gallery-image-container">
|
||||
<img alt="{{ gallery.thumbAltText }}" class="gallery-image" src="{{ gallery.url }}{{ picture.filename }}">
|
||||
</wc-card>
|
||||
</a>
|
||||
{% endfor %}
|
||||
</section>
|
Reference in New Issue
Block a user