diff --git a/layouts/shortcodes/photo.html b/layouts/shortcodes/photo.html
index f5e0937..cb3bd6f 100644
--- a/layouts/shortcodes/photo.html
+++ b/layouts/shortcodes/photo.html
@@ -1,8 +1,9 @@
{{- with $photoPage := $.Page.GetPage (printf "photos/%s" (.Get 0)) -}}
- {{- $thumbnail := partial "images/photo_thumbnail.html" (dict "Page" . "Width" 1280 "Height" 1280) -}}
-
-
-
+ {{- $thumbnail := partial "images/photo_thumbnail.html" (dict "Page" . "Width" 1280 "Height" 1280) -}}
+ {{- $altText := $thumbnail.Params.alt | default .Title -}}
+
+
+
{{- else -}}
- {{- errorf "No page matching '%s'" (.Get 0) -}}
+ {{- errorf "No page matching '%s'" (.Get 0) -}}
{{- end -}}