From b72441b9b1a8fb3494d5e59d55205a7c34abe1c1 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sat, 26 Oct 2024 08:31:14 -0600 Subject: [PATCH] Embed the image of a photo post link in a
--- layouts/shortcodes/photo.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/layouts/shortcodes/photo.html b/layouts/shortcodes/photo.html index 8656181..5251956 100644 --- a/layouts/shortcodes/photo.html +++ b/layouts/shortcodes/photo.html @@ -1,9 +1,12 @@ {{- with $photoPage := $.Page.GetPage (printf "photos/%s" (.Get 0)) -}} {{- $thumbnail := partial "photos/thumbnail.html" (dict "Page" . "Width" 1280 "Height" 1280) -}} {{- $altText := $thumbnail.Params.alt | default .Title -}} - - {{ . }} - +
+ + {{ . }} + +
{{ .Title }}
+
{{- else -}} {{- errorf "No page matching '%s'" (.Get 0) -}} {{- end -}}