Parameterize the photo grid

This commit is contained in:
Eryn Wells 2023-10-03 08:55:13 -07:00
parent 864c1b673a
commit 8cc207b84c
8 changed files with 30 additions and 10 deletions

View file

@ -11,7 +11,12 @@
{{ if eq (len $photos) 1 }}
{{- $img := index $photos 0 -}}
<figure>
<img src="{{ $img.RelPermalink }}"{{ with $img.Params.alt }} alt="{{ . }}"{{ end }}>
<img
src="{{ $img.RelPermalink }}"
{{ with $img.Params.alt }}
alt="{{ . }}"
{{ end }}
height={{ $img.Height }}>
</figure>
<article>