diff options
author | tdro <tdro@noreply.example.com> | 2023-02-13 18:36:40 -0500 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2023-02-13 20:15:44 -0500 |
commit | 0ff6cdf8550ab1b36e42988048460665094b0d65 (patch) | |
tree | f85ad54f389dcbdf5c54fa141f7e9fbadbe71df9 /themes/default/layouts/partials/gallery.html | |
parent | 873195a39e84bccd8d0fafe26d6f60983f54ed0a (diff) | |
download | canory-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.html | 13 |
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> |