Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/2-REC/hugo-myportfolio-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Severin <severinderek@gmail.com>2019-07-16 14:27:05 +0300
committerDerek Severin <severinderek@gmail.com>2019-07-16 14:27:05 +0300
commitfb0476dee85baa5b005abcd9ae2b237a601ec8b1 (patch)
tree7935d6edc59608baedd4d0c07ef585ce0089ad04
parent75b25817344b79eca98e7ab5852bcd1fcfac27a9 (diff)
Changed deprecated .Dir
-rw-r--r--layouts/partials/gallery.html2
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 .) }}