From b5dcc96742cc2cbf98e4c0f734e842418e4f4307 Mon Sep 17 00:00:00 2001 From: maike Date: Thu, 3 Sep 2026 10:59:09 +0500 Subject: Restructued a project --- lib/partials/figure.p | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 lib/partials/figure.p (limited to 'lib/partials/figure.p') diff --git a/lib/partials/figure.p b/lib/partials/figure.p new file mode 100644 index 0000000..f853c96 --- /dev/null +++ b/lib/partials/figure.p @@ -0,0 +1,29 @@ +@USE +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