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-02-10 10:20:02 +0300
committerDerek Severin <severinderek@gmail.com>2019-02-10 10:20:02 +0300
commitefbd6a27f869a7b405479e1f2db6a7529cd19652 (patch)
treeedbc1c7dccfdc941d0c7c2a014f012bff0c36fc9
parentf764775985b446655701ed740c116d598980cb77 (diff)
Image gallery: removed call to '.Inner' when no directory specified - as not working and not required for now
-rw-r--r--layouts/partials/gallery.html6
1 files changed, 5 insertions, 1 deletions
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 -}}
<!-- skip files that aren't images, or that inlcude the thumb suffix in their name -->
@@ -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.
<!-- If no directory was specified, include any figure shortcodes called within the gallery -->
{{ .Inner }}
+*/}}
{{- end }}
</div>