From b7221075a34348e1117a95d395c884fbb0ed65b2 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Mon, 28 Nov 2022 17:29:00 -0800 Subject: [PATCH] Add a photo_details param that turns off the details table when set to false --- layouts/photos/single.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/layouts/photos/single.html b/layouts/photos/single.html index f3e2e20..8a1aeae 100644 --- a/layouts/photos/single.html +++ b/layouts/photos/single.html @@ -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 }}