zola-inky-fork/templates/gallery.html

25 lines
908 B
HTML
Raw Normal View History

2023-02-01 17:58:59 +00:00
2023-02-20 11:24:42 +00:00
{% extends "base.html" -%}
{% block content -%}
2023-02-01 17:58:59 +00:00
<h1 class="title">{{ section.title }}</h1>
<article>{{ section.content | safe }}</article>
2023-02-20 11:24:42 +00:00
{% for year, posts in section.pages | group_by(attribute="year") -%}
2023-02-01 17:58:59 +00:00
<ul class="gallery flat">
<h2 class="archive-year">{{ year }}</h2>
2023-02-20 11:24:42 +00:00
{% for post in posts -%}
{% if post.extra.images -%}
{% for image in post.extra.images -%}
2023-02-01 17:58:59 +00:00
{# { set image = resize_image(path=post.path ~ image, width=256, height=256, format=config.extra.image_format, quality=config.extra.thumbnail_quality) %} #}
<li class="thumbnail">
<a href="{{ post.permalink | safe }}" title="{{ post.title }} - {{ post.date }}">
2023-02-20 11:24:42 +00:00
{{ images::responsive_thumbnail(path=post.colocated_path, src=image, default_size=128, sizes=[128,256], alt=post.title ~ " - " ~ post.date ) -}}
2023-02-01 17:58:59 +00:00
</a>
</li>
2023-02-20 11:24:42 +00:00
{% endfor -%}
{% endif -%}
{% endfor -%}
2023-02-01 17:58:59 +00:00
</ul>
2023-02-20 11:24:42 +00:00
{% endfor -%}
{% endblock content -%}
2023-02-01 17:58:59 +00:00