-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathphotos.html
31 lines (29 loc) · 948 Bytes
/
photos.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---
layout: default
type: photos
title: Photos
---
<div class="photos-wrapper" id="photos">
{% assign photos = site.static_files | where: "image", true %}
{% for photo in photos %}
<figure id="P{{ photo.guid }}" class="figure-{{ photo.orientation }}">
<a href="{{ photo.path }}" class="image-link">
<img
src="{{ photo.path }}"
height="{{ photo.height }}"
style="aspect-ratio: {{ photo.ratio }}"
alt="{{ photo.alt }}"
title="{{ photo.alt }}"
class="{{ photo.orientation }}"
loading="lazy">
</a>
<figcaption>
<div class="desc photo-metadata">
<div>{{ photo.createdAt | date: "%Y/%m/%d (%a)" }}</div>
</div>
{% capture caption %}{{ photo.caption | strip }}{% endcapture %}
{% if caption != "-" and caption != "" %}{{ caption | markdownify }}{% endif %}
</figcaption>
</figure>
{% endfor %}
</div>