Parameterize the photo grid
This commit is contained in:
parent
864c1b673a
commit
8cc207b84c
8 changed files with 30 additions and 10 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue