diff options
Diffstat (limited to 'themes/default/layouts/partials/gallery.html')
-rw-r--r-- | themes/default/layouts/partials/gallery.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/themes/default/layouts/partials/gallery.html b/themes/default/layouts/partials/gallery.html new file mode 100644 index 0000000..2634b68 --- /dev/null +++ b/themes/default/layouts/partials/gallery.html @@ -0,0 +1,15 @@ +{{- $folder := print "public/" .Section "/media/" -}} +{{- $gallery := print "public/" .Section "/gallery.html" -}} + +<gallery-images> + <h1>Gallery</h1> + <aside> + {{ if fileExists $gallery }} + {{- (resources.Get $gallery).Content | safeHTML -}} + {{ else }} + <footer> + <code>No media found!</code> + </footer> + {{ end }} + </aside> +</gallery-images> |