diff --git a/layouts/partials/pic_set.html b/layouts/partials/pic_set.html index ad8aedd..45f5215 100644 --- a/layouts/partials/pic_set.html +++ b/layouts/partials/pic_set.html @@ -1,3 +1,6 @@ +{{ $pic_set := .pic_set }} +{{ $caption := .caption }} + {{ $num_per_row := 3}} {{ $max_width := 80}} {{ if or (eq (len .pic_set) 2) (eq (len .pic_set) 4)}} @@ -5,11 +8,12 @@ {{ $max_width = 53}} {{ end }} -{{ $caption := .caption}} -
- {{ range $num, $a := .pic_set }} + {{ range $num, $a := $pic_set }} + {{ if resources.Get $a }} + {{ $a = (resources.Get $a).Permalink }} + {{ end }}