From e7c15e2602e49355444f5d90819dfd0ea66e47bf Mon Sep 17 00:00:00 2001 From: maike Date: Wed, 2 Sep 2026 00:23:42 +0500 Subject: Basic article layout --- partials/_article.p | 7 +++++++ partials/_header.p | 18 ++++++++++-------- partials/_picture.p | 8 ++++++++ partials/_section.p | 7 +++++++ 4 files changed, 32 insertions(+), 8 deletions(-) create mode 100644 partials/_article.p create mode 100644 partials/_picture.p create mode 100644 partials/_section.p (limited to 'partials') diff --git a/partials/_article.p b/partials/_article.p new file mode 100644 index 0000000..b397998 --- /dev/null +++ b/partials/_article.p @@ -0,0 +1,7 @@ +@article[id;title;content] +
+

$title

+ + $content +
+#end @article[] diff --git a/partials/_header.p b/partials/_header.p index ca070ea..2525cf3 100644 --- a/partials/_header.p +++ b/partials/_header.p @@ -1,16 +1,18 @@ -@header[] -$brand[synzr] +@USE +/partials/_picture.p -
- - - - Моя покеписона - +@header[brand] +$pokepi[ + $.[image/png][/img/pokepi.png] + $.[image/webp][/img/pokepi.webp] +] +
+ ^picture[$pokepi;Мой покепи;pokepi;image/png]

^for[i](0;^brand.length[] - 1){ ^brand.mid($i;1) }

+#end @header[] diff --git a/partials/_picture.p b/partials/_picture.p new file mode 100644 index 0000000..9128f1f --- /dev/null +++ b/partials/_picture.p @@ -0,0 +1,8 @@ +@picture[images;alt;class;default] + + ^images.foreach[type;srcset]{ + + } + $alt + +#end @picture[] diff --git a/partials/_section.p b/partials/_section.p new file mode 100644 index 0000000..d6e0b66 --- /dev/null +++ b/partials/_section.p @@ -0,0 +1,7 @@ +@section[id;title;content] +
+

$title

+ + $content +
+#end @section[] -- cgit v1.3