diff options
| author | maike <maike@synzr.tw> | 2026-09-02 00:23:42 +0500 |
|---|---|---|
| committer | maike <maike@synzr.tw> | 2026-09-02 00:23:42 +0500 |
| commit | e7c15e2602e49355444f5d90819dfd0ea66e47bf (patch) | |
| tree | e6e028ee4fd86523015d7bc36f7dca7dff7fb69f /partials/_picture.p | |
| parent | d5f4539e7ab6cb00513cd428b6ab08c67ddd6bc9 (diff) | |
| download | hamster-e7c15e2602e49355444f5d90819dfd0ea66e47bf.tar.gz hamster-e7c15e2602e49355444f5d90819dfd0ea66e47bf.tar.bz2 hamster-e7c15e2602e49355444f5d90819dfd0ea66e47bf.zip | |
Basic article layout
Diffstat (limited to 'partials/_picture.p')
| -rw-r--r-- | partials/_picture.p | 8 |
1 files changed, 8 insertions, 0 deletions
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] +<picture> + ^images.foreach[type;srcset]{ + <source srcset="$srcset" type="$type"> + } + <img src="$images.[$default]" alt="$alt" class="$class"> +</picture> +#end @picture[] |
