Add thumbnailing for photo grids

This commit is contained in:
2026-04-23 20:43:05 +02:00
parent 60b514eae7
commit 02a1482789
8 changed files with 352 additions and 19 deletions
+7 -1
View File
@@ -2,6 +2,12 @@
{{range .Months}}
<h3 id="{{.ID}}">
<a href="{{.URL}}">{{.Name}}</a>
{{if .PhotoCount}}<span class="muted">({{.PhotoCount}} photos)</span>{{end}}
</h3>
{{if .Photos}}
<div class="photo-grid">
{{range .Photos}}
<a href="{{.URL}}" target="_blank"><img src="{{.ThumbURL}}" alt="{{.Name}}" loading="lazy"></a>
{{end}}
</div>
{{end}}
{{end}}