From ca9ae1f69a2bd531daad4395a712a24bca84f9b0 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Mon, 27 May 2024 18:29:15 -0400 Subject: add themes/hugo-pt2021/layouts/partials/carousel.html --- themes/hugo-pt2021/layouts/partials/carousel.html | 99 +++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 themes/hugo-pt2021/layouts/partials/carousel.html (limited to 'themes') diff --git a/themes/hugo-pt2021/layouts/partials/carousel.html b/themes/hugo-pt2021/layouts/partials/carousel.html new file mode 100644 index 0000000..1052160 --- /dev/null +++ b/themes/hugo-pt2021/layouts/partials/carousel.html @@ -0,0 +1,99 @@ +{{/* + notes: + - copied from pe-figure shortcode with MIME_TYPES removed + - should eventually allow for top and bottom carousels +*/}} +{{- if . -}} +
+ {{ range . }} + {{ $pic := . }} + {{- $tip := default $pic.link_tip $pic.tip -}} + + {{ end }} +
+{{- end -}} -- cgit v1.2.3