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 -}}