Skip to content

Latest commit

 

History

History
executable file
·
42 lines (38 loc) · 1.06 KB

File metadata and controls

executable file
·
42 lines (38 loc) · 1.06 KB
layout page
title Gallery
permalink /gallery
<style> main { max-width: 120ch;} .card { width: 35%; padding: 0; row-gap: 0; overflow: hidden; flex-grow: 1; } .card.big { width: 47.5%;} figcaption { padding: 1em; font-family: 'Space Grotesk'; } .card img { height: 100%; object-fit: cover; } </style>

{% assign photos = site.pages | where_exp: "item", "item.dir contains '/photos/'" | sort: "date" | reverse %}

    {% for photo in photos %}
  1. {{ photo.title | default: photo.filename }}
    	<figcaption>
    		{% if photo.title %}<big>
    			{{ photo.title }}
    		</big>{% endif %}
    		<small>
    			<img class="icon" src="/images/camera.svg" alt="Camera"> {{ photo.camera }} · <img class="icon" src="/images/location.svg" alt="Location"> {{ photo.location }} · {{ photo.date | date: "%-d %B %Y %H:%M" }}
    		</small>
    	</figcaption>
    </li>{% endfor %}