diff options
| author | maike <maike@synzr.tw> | 2026-09-03 10:59:09 +0500 |
|---|---|---|
| committer | maike <maike@synzr.tw> | 2026-09-03 10:59:09 +0500 |
| commit | b5dcc96742cc2cbf98e4c0f734e842418e4f4307 (patch) | |
| tree | b45c6a5498a2c0c974cbb216ea5d0d7186e33f97 /partials | |
| parent | e176c0f0709bd17a46d943b96e631a3f2b1320fb (diff) | |
| download | hamster-b5dcc96742cc2cbf98e4c0f734e842418e4f4307.tar.gz hamster-b5dcc96742cc2cbf98e4c0f734e842418e4f4307.tar.bz2 hamster-b5dcc96742cc2cbf98e4c0f734e842418e4f4307.zip | |
Restructued a project
Diffstat (limited to 'partials')
| -rw-r--r-- | partials/_article.p | 6 | ||||
| -rw-r--r-- | partials/_figure.p | 29 | ||||
| -rw-r--r-- | partials/_header.p | 21 | ||||
| -rw-r--r-- | partials/_picture.p | 14 | ||||
| -rw-r--r-- | partials/_section.p | 8 |
5 files changed, 0 insertions, 78 deletions
diff --git a/partials/_article.p b/partials/_article.p deleted file mode 100644 index 3e2ddfb..0000000 --- a/partials/_article.p +++ /dev/null @@ -1,6 +0,0 @@ -@article[id;title;content] -<div class="article" id="$id"> - <h1 class="title">$title</h1> - $content -</div> -#end @article[] diff --git a/partials/_figure.p b/partials/_figure.p deleted file mode 100644 index df7c653..0000000 --- a/partials/_figure.p +++ /dev/null @@ -1,29 +0,0 @@ -@USE -/partials/_picture.p - -@figure[images;default_type;.caption;.alt;.height;.href] -^if(def $alt){ - $resolved_alt[$alt] -}(def $caption){ - $resolved_alt[$caption] -} - -<figure class="figure"> -# HACK боже какое оно вонючее - ^if(def $href){ - <a href="$href"> - } - ^picture[$images;$default_type; - $.alt[$resolved_alt] - $.height[$height] - $.class[image] - ] - ^if(def $href){ - </a> - } - - ^if(def $caption){ - <figcaption class="caption">$caption</figcaption> - } -</figure> -#end @figure[] diff --git a/partials/_header.p b/partials/_header.p deleted file mode 100644 index 5f57f7c..0000000 --- a/partials/_header.p +++ /dev/null @@ -1,21 +0,0 @@ -@USE -/partials/_picture.p - -@header[brand] -$pokepi[ - $.[image/webp][/img/pokepi.webp] - $.[image/png][/img/pokepi.png] -] - -<header class="header clearfix" role="presentation"> - ^picture[$pokepi;image/png; - $.alt[Мой покепи] - $.class[pokepi] - ] - <h1 class="brand"> - ^for[i](0;^brand.length[] - 1){ - <span class="letter">^brand.mid($i;1)</span> - } - </h1> -</header> -#end @header[] diff --git a/partials/_picture.p b/partials/_picture.p deleted file mode 100644 index cdd1baf..0000000 --- a/partials/_picture.p +++ /dev/null @@ -1,14 +0,0 @@ -@picture[images;default_type;.alt;.class;.role;.height] -<picture> - ^images.foreach[type;srcset]{ - <source srcset="$srcset" type="$type"> - } - <img - src="$images.[$default_type]" - ^if(def $alt){alt="$alt"} - ^if(def $class){class="$class"} - ^if(def $role){role="$role"} - ^if(def $height){height="$height"} - > -</picture> -#end @picture[] diff --git a/partials/_section.p b/partials/_section.p deleted file mode 100644 index 44135e1..0000000 --- a/partials/_section.p +++ /dev/null @@ -1,8 +0,0 @@ -@section[id;content;.title] -<section id="$id" class="section"> - ^if(def $title){ - <h2 class="title">$title</h2> - } - $content -</section> -#end @section[] |
