aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/gallery.html
blob: 2634b680fe72da08b768883dda3940ebe5855d8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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>