From e176c0f0709bd17a46d943b96e631a3f2b1320fb Mon Sep 17 00:00:00 2001 From: maike Date: Wed, 2 Sep 2026 21:41:31 +0500 Subject: Clickable IRL photo --- partials/_figure.p | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 partials/_figure.p (limited to 'partials/_figure.p') diff --git a/partials/_figure.p b/partials/_figure.p new file mode 100644 index 0000000..df7c653 --- /dev/null +++ b/partials/_figure.p @@ -0,0 +1,29 @@ +@USE +/partials/_picture.p + +@figure[images;default_type;.caption;.alt;.height;.href] +^if(def $alt){ + $resolved_alt[$alt] +}(def $caption){ + $resolved_alt[$caption] +} + +
+# HACK боже какое оно вонючее + ^if(def $href){ + + } + ^picture[$images;$default_type; + $.alt[$resolved_alt] + $.height[$height] + $.class[image] + ] + ^if(def $href){ + + } + + ^if(def $caption){ +
$caption
+ } +
+#end @figure[] -- cgit v1.3