|
@@ -6,6 +6,7 @@
|
|
{{ $images := ($.Page.Resources.ByType "image").Match (printf "%s/*" $album) }}
|
|
{{ $images := ($.Page.Resources.ByType "image").Match (printf "%s/*" $album) }}
|
|
{{ with $images }}
|
|
{{ with $images }}
|
|
{{ range $images }}
|
|
{{ range $images }}
|
|
|
|
+ {{ $image := .Resize "x190" }}
|
|
{{/* Check if the user set a caption for this image */}}
|
|
{{/* Check if the user set a caption for this image */}}
|
|
{{ $filename := .Name }}
|
|
{{ $filename := .Name }}
|
|
{{ $caption := "" }}
|
|
{{ $caption := "" }}
|
|
@@ -15,7 +16,7 @@
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|
|
<a data-fancybox="gallery-{{$album}}" href="{{ .RelPermalink }}" {{ with $caption }}data-caption="{{.}}"{{ end }}>
|
|
<a data-fancybox="gallery-{{$album}}" href="{{ .RelPermalink }}" {{ with $caption }}data-caption="{{.}}"{{ end }}>
|
|
- <img src="{{ .RelPermalink }}" alt="">
|
|
|
|
|
|
+ <img src="{{ $image.RelPermalink }}" alt="">
|
|
</a>
|
|
</a>
|
|
{{end}}
|
|
{{end}}
|
|
|
|
|