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:31:27 +0300
committerDerek Severin <severinderek@gmail.com>2019-07-16 14:31:27 +0300
commit10539128c9312bd6691464b568e6a7f6db41d3c4 (patch)
tree28de3deedf6a7bb8976a4347de422cdd42502b1f
parentfb0476dee85baa5b005abcd9ae2b237a601ec8b1 (diff)
Changed deprecated .Dir - FIX
-rw-r--r--layouts/partials/gallery.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/gallery.html b/layouts/partials/gallery.html
index db55124..9a5be38 100644
--- a/layouts/partials/gallery.html
+++ b/layouts/partials/gallery.html
@@ -45,13 +45,13 @@ 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 .File.dir -}}
+ {{- with .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 .) }}
{{ $.page.Scratch.Set "dirFiles" (print "/static/" .) }}
{{- else -}}
- {{- $tmpDir := print (replace $.page.Dir "\\" "/") "/" . }}
+ {{- $tmpDir := print (replace $.page.File.Dir "\\" "/") "/" . }}
{{ $.page.Scratch.Set "dirURL" $tmpDir }}
{{ $.page.Scratch.Set "dirFiles" (print "/content/" $tmpDir "/") }}
{{- end -}}