aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/gallery.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2023-02-13 18:36:40 -0500
committertdro <tdro@noreply.example.com>2023-02-13 20:15:44 -0500
commit0ff6cdf8550ab1b36e42988048460665094b0d65 (patch)
treef85ad54f389dcbdf5c54fa141f7e9fbadbe71df9 /themes/default/layouts/partials/gallery.html
parent873195a39e84bccd8d0fafe26d6f60983f54ed0a (diff)
downloadcanory-0ff6cdf8550ab1b36e42988048460665094b0d65.tar.gz
canory-0ff6cdf8550ab1b36e42988048460665094b0d65.tar.bz2
canory-0ff6cdf8550ab1b36e42988048460665094b0d65.zip
themes/default/layouts/partials/gallery-walk: Walk with findRE
Diffstat (limited to 'themes/default/layouts/partials/gallery.html')
-rw-r--r--themes/default/layouts/partials/gallery.html13
1 files changed, 6 insertions, 7 deletions
diff --git a/themes/default/layouts/partials/gallery.html b/themes/default/layouts/partials/gallery.html
index 2634b68..8aaa2c8 100644
--- a/themes/default/layouts/partials/gallery.html
+++ b/themes/default/layouts/partials/gallery.html
@@ -1,15 +1,14 @@
-{{- $folder := print "public/" .Section "/media/" -}}
{{- $gallery := print "public/" .Section "/gallery.html" -}}
<gallery-images>
<h1>Gallery</h1>
<aside>
- {{ if fileExists $gallery }}
+ {{- if fileExists $gallery -}}
{{- (resources.Get $gallery).Content | safeHTML -}}
- {{ else }}
- <footer>
- <code>No media found!</code>
- </footer>
- {{ end }}
+ {{- else -}}
+ <footer>
+ <code>No media found!</code>
+ </footer>
+ {{- end -}}
</aside>
</gallery-images>