website/_src/_includes/gallery.njk

56 lines
1.8 KiB
Text
Raw Normal View History

2025-06-11 09:36:54 +03:00
---
layout: base
---
2025-06-16 16:31:53 +03:00
<article id="art">
2025-10-14 19:40:29 +03:00
<h1>{{ page.fileSlug }}
{%for flag in flags%}
2025-10-14 19:40:29 +03:00
<img src="{{ flag.src }}">
{%endfor%}
2025-10-14 19:40:29 +03:00
</h1>
{{ content|safe }}
{%if programs and programs|length > 0%}
2025-10-14 19:40:29 +03:00
<p>Made with:</p>
<ul>
{%for program in programs%}
2025-10-14 19:40:29 +03:00
<li>
{{ program.name|link(program.src)|safe }}
2025-10-19 15:55:35 +03:00
</li>
{%endfor%}
2025-10-19 15:55:35 +03:00
</ul>
{%endif%}
{%if palettes and palettes|length > 0%}
2025-10-19 15:55:35 +03:00
<p>Color palette used:</p>
{%for palette in palettes%}
2025-10-19 15:55:35 +03:00
<ul>
<li>
{%if palette.src%}
{{ palette.name|link(palette.src)|safe }}
{%endif%}
2025-10-19 15:55:35 +03:00
</li>
2025-10-14 19:40:29 +03:00
</ul>
{%endfor%}
2025-10-19 15:55:35 +03:00
</ul>
{%endif%}
2025-10-19 15:55:35 +03:00
<section>
{%for image in images%}
2025-10-19 15:55:35 +03:00
<a href="{{ image.src }}">
<figure>
<img src="{{ image.src }}" alt="" {%if image.pixel%} style="image-rendering: pixelated" {%endif%}>
2025-10-19 15:55:35 +03:00
<figcaption>{{ image.alt }}</figcaption>
<time datetime="{{ image.date|ISO }}">{{ image.date|readable }}</time>
</figure>
</a>
{%endfor%}
2025-10-19 15:55:35 +03:00
</section>
{%for attachment in attachments%}
2025-10-19 15:55:35 +03:00
<section class="attachment">
<a href="{{ attachment.src }}">
<figure>
<img src="{{ attachment.src }}">
<figcaption>{{ attachment.alt }}</figcaption>
</figure>
</a>
</section>
{%endfor%}
2025-10-19 15:55:35 +03:00
</article>