From bdf5f3213c1fa42e403c37675e25a954bb024d8f Mon Sep 17 00:00:00 2001 From: daudix Date: Mon, 12 Aug 2024 18:05:01 +0300 Subject: [PATCH] Fix full_bleed shortcode variable Oh and nicer duck pics --- content/demo/index.md | 7 ++++++- templates/shortcodes/image.html | 4 ++-- templates/shortcodes/video.html | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/content/demo/index.md b/content/demo/index.md index 46de063..6c6b5a8 100644 --- a/content/demo/index.md +++ b/content/demo/index.md @@ -54,7 +54,7 @@ Long, single-line code blocks should not wrap. They should horizontally scroll i - [ ] Coffee - [x] Combustible lemons -![Indian Runner Ducks](https://upload.wikimedia.org/wikipedia/commons/1/14/COLLECTIE_TROPENMUSEUM_Eenden_in_een_sawa_TMnr_60032098_%28cropped%29.jpg) +![Male mallard duck](https://upload.wikimedia.org/wikipedia/commons/thumb/2/24/Male_mallard_duck_2.jpg/800px-Male_mallard_duck_2.jpg) | Mare | Rating | Additional info | | :----------- | :---------------- | :--------------- | @@ -195,6 +195,11 @@ For videos it's all the same except for a few differences: `no_hover` and `url_m
WebM video example from MDN
+
+{{ video(url="https://upload.wikimedia.org/wikipedia/commons/transcoded/0/0e/Duckling_preening_%2881313%29.webm/Duckling_preening_%2881313%29.webm.720p.vp9.webm", alt="Duckling preening", full_bleed=true) }} +
Duckling preening
+
+ #### CRT Alright, this one doesn't simplify anything, it just adds a CRT-like effect around Markdown code blocks. diff --git a/templates/shortcodes/image.html b/templates/shortcodes/image.html index 5d9726a..564c2b6 100644 --- a/templates/shortcodes/image.html +++ b/templates/shortcodes/image.html @@ -2,7 +2,7 @@