blog.neet.works/layouts/shortcodes/panzoom-gallery.html
2025-01-06 02:14:31 -06:00

9 lines
246 B
HTML

{{ $id := delimit (slice "gallery" (partial "functions/uid.html" .)) "-" }}
{{- $caption := .Get "caption" }}
<div id="{{ $id }}" class="gallery">
{{ .Inner }}
</div>
{{ with $caption }}<figcaption>{{ . | markdownify }}</figcaption>{{ end }}