diff options
Diffstat (limited to 'layouts/partials/sect_and_img_content.html')
-rw-r--r-- | layouts/partials/sect_and_img_content.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/sect_and_img_content.html b/layouts/partials/sect_and_img_content.html index 73b54d8..5551b2b 100644 --- a/layouts/partials/sect_and_img_content.html +++ b/layouts/partials/sect_and_img_content.html @@ -140,7 +140,7 @@ {{- $column := $.Scratch.Get $st_name }} <div class="flexcol"> {{- range $column }} - + {{- $filename := path.Base .image.Name }} <article class="thumb"> {{- if (eq .type "sect") }} <a href="{{ .link }}" class="link" tabindex="0"><img src="{{ .thumb.RelPermalink }}" alt="{{ .title }}" /></a> @@ -149,9 +149,9 @@ <a class="gallery-item" phototitle="{{ .phototitle }}" description="{{ .description }}" gallery_index="{{ .index }}" - id="image_number_{{ .index }}" + id="{{ md5 $filename }}" downloadable="{{ cond $downloadable "true" "false" }}" - orig_name="{{ path.Base .image.Name }}" + orig_name="{{ $filename }}" href="{{ .full.RelPermalink }}"> <img src="{{ .thumb.RelPermalink }}" {{ with .alt }} alt="{{ . }}"{{ end }}> |