From efbd6a27f869a7b405479e1f2db6a7529cd19652 Mon Sep 17 00:00:00 2001 From: Derek Severin Date: Sun, 10 Feb 2019 14:20:02 +0700 Subject: Image gallery: removed call to '.Inner' when no directory specified - as not working and not required for now --- layouts/partials/gallery.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/layouts/partials/gallery.html b/layouts/partials/gallery.html index 6c7fc4b..ca77ac0 100644 --- a/layouts/partials/gallery.html +++ b/layouts/partials/gallery.html @@ -48,7 +48,7 @@ Documentation and licence at https://github.com/liwenyip/hugo-easy-gallery/ {{- $dir := $.page.Scratch.Get "dirURL" }} {{- $dirFiles := $.page.Scratch.Get "dirFiles" }} {{ if (fileExists $dirFiles) -}} - {{- $files := readDir ($dirFiles ) }} + {{- $files := readDir $dirFiles }} {{- range $files -}} @@ -79,7 +79,11 @@ Documentation and licence at https://github.com/liwenyip/hugo-easy-gallery/ {{ $.page.Scratch.Delete "dirFiles" }} {{- else -}} +{{/* +TODO: Need to change the "figure" shortcode to a partial. +Not required for now as not used. {{ .Inner }} +*/}} {{- end }} -- cgit v1.2.3