diff options
author | Derek Severin <severinderek@gmail.com> | 2019-07-16 14:27:05 +0300 |
---|---|---|
committer | Derek Severin <severinderek@gmail.com> | 2019-07-16 14:27:05 +0300 |
commit | fb0476dee85baa5b005abcd9ae2b237a601ec8b1 (patch) | |
tree | 7935d6edc59608baedd4d0c07ef585ce0089ad04 | |
parent | 75b25817344b79eca98e7ab5852bcd1fcfac27a9 (diff) |
Changed deprecated .Dir
-rw-r--r-- | layouts/partials/gallery.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/gallery.html b/layouts/partials/gallery.html index 2bc90fa..db55124 100644 --- a/layouts/partials/gallery.html +++ b/layouts/partials/gallery.html @@ -45,7 +45,7 @@ Documentation and licence at https://github.com/liwenyip/hugo-easy-gallery/ {{- .page.Scratch.Add "figurecount" 1 }} {{ $baseURL := .page.Site.BaseURL }} <div class="gallery caption-position-{{ with .caption_position | default "bottom" }}{{.}}{{end}} caption-effect-{{ with .caption_effect | default "slide" }}{{.}}{{end}} hover-effect-{{ with .hover_effect | default "zoom" }}{{.}}{{end}} {{ if ne (.hover_transition) "none" }}hover-transition{{end}}" itemscope itemtype="http://schema.org/ImageGallery"> - {{- with .dir -}} + {{- with .File.dir -}} <!-- If a directory was specified, generate figures for all of the images in the directory --> {{- if eq $.static "true" -}} {{ $.page.Scratch.Set "dirURL" (print .) }} |