Add a photo_details param that turns off the details table when set to false

This commit is contained in:
Eryn Wells 2022-11-28 17:29:00 -08:00
parent fe8e12a2ba
commit b7221075a3

View file

@ -20,10 +20,12 @@
{{ .Content }}
{{- partial "photo_exif_table.html" $img.Exif -}}
{{- if .Params.photo_details | default true -}}
{{- partial "photo_exif_table.html" $img.Exif -}}
{{- if in ($.Site.BaseURL | string) "localhost" -}}
{{- partial "development/photo_exif_table.html" $img.Exif -}}
{{- if in ($.Site.BaseURL | string) "localhost" -}}
{{- partial "development/photo_exif_table.html" $img.Exif -}}
{{- end -}}
{{- end -}}
{{ else }}
<figure>