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/_article.p | 1 - partials/_figure.p | 29 +++++++++++++++++++++++++++++ partials/_header.p | 9 ++++++--- partials/_picture.p | 10 ++++++++-- partials/_section.p | 7 ++++--- 5 files changed, 47 insertions(+), 9 deletions(-) create mode 100644 partials/_figure.p (limited to 'partials') diff --git a/partials/_article.p b/partials/_article.p index b397998..3e2ddfb 100644 --- a/partials/_article.p +++ b/partials/_article.p @@ -1,7 +1,6 @@ @article[id;title;content]

$title

- $content
#end @article[] 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[] diff --git a/partials/_header.p b/partials/_header.p index 2525cf3..5f57f7c 100644 --- a/partials/_header.p +++ b/partials/_header.p @@ -3,12 +3,15 @@ @header[brand] $pokepi[ - $.[image/png][/img/pokepi.png] $.[image/webp][/img/pokepi.webp] + $.[image/png][/img/pokepi.png] ] -
- ^picture[$pokepi;Мой покепи;pokepi;image/png] +