From c2d72e09747a2a4abe9602e1ba49a1b4649c9d3c Mon Sep 17 00:00:00 2001 From: Jieiku Date: Fri, 14 Aug 2026 15:10:15 -0700 Subject: Update for Zola 0.23.3 --- content/overview-images/index.md | 48 +++++++++++++++++++++++++--------------- 1 file changed, 30 insertions(+), 18 deletions(-) (limited to 'content/overview-images/index.md') diff --git a/content/overview-images/index.md b/content/overview-images/index.md index c3cfd03..77a596b 100644 --- a/content/overview-images/index.md +++ b/content/overview-images/index.md @@ -42,45 +42,51 @@ Optional Classes: ## Usage (same path) +{% raw %} ```rs -{{/* img(src="ferris-happy.svg" class="ci b1" alt="Ferris is Happy" caption="Ferris" link="https://www.rust-lang.org/") */}} +{{Ferris is Happy}} ``` +{% endraw %} **Output** ```html -{{ img(src="ferris-happy.svg" class="ci b1" alt="Ferris is Happy" caption="Ferris" link="https://www.rust-lang.org/") }} +{{Ferris is Happy}} ``` -{{ img(src="ferris-happy.svg" class="ci b1" alt="Ferris is Happy" caption="Ferris" link="https://www.rust-lang.org/") }} +{{Ferris is Happy}} ## Usage (relative path ./) +{% raw %} ```rs -{{/* img(src="./img/ferris-gesture.svg" alt="Ferris says Hello" caption="Ferris" link="https://www.rust-lang.org/") */}} +{{Ferris says Hello}} ``` +{% endraw %} **Output** ```html -{{ img(src="./img/ferris-gesture.svg" alt="Ferris says Hello" caption="Ferris" link="https://www.rust-lang.org/") }} +{{Ferris says Hello}} ``` -{{ img(src="./img/ferris-gesture.svg" alt="Ferris says Hello" caption="Ferris" link="https://www.rust-lang.org/") }} +{{Ferris says Hello}} ## Usage (root path /) +{% raw %} ```rs -{{/* img(src="/images/ferris.svg" alt="Ferris the Rustacean") */}} +{{Ferris the Rustacean}} ``` +{% endraw %} **Output** ```html -{{ img(src="/images/ferris.svg" alt="Ferris the Rustacean") }} +{{Ferris the Rustacean}} ``` -{{ img(src="/images/ferris.svg" alt="Ferris the Rustacean") }} +{{Ferris the Rustacean}} # SVG image directly in code @@ -109,42 +115,48 @@ When you hover your mouse over the image it will display the image to compare. ## Usage (same path) +{% raw %} ```rs -{{/* imgswap(main_src="ferris.svg" swap_src="ferris-happy.svg") */}} +{{}} ``` +{% endraw %} **Output** ```html -{{ imgswap(main_src="ferris.svg" swap_src="ferris-happy.svg") }} +{{}} ``` -{{ imgswap(main_src="ferris.svg" swap_src="ferris-happy.svg") }} +{{}} ## Usage (relative path ./) +{% raw %} ```rs -{{/* imgswap(main_src="./img/ferris.svg" swap_src="./img/ferris-gesture.svg") */}} +{{}} ``` +{% endraw %} **Output** ```html -{{ imgswap(main_src="./img/ferris.svg" swap_src="./img/ferris-gesture.svg") }} +{{}} ``` -{{ imgswap(main_src="./img/ferris.svg" swap_src="./img/ferris-gesture.svg") }} +{{}} ## Usage (root path /) +{% raw %} ```rs -{{/* imgswap(main_src="/images/ferris.svg" swap_src="/images/ferris-gesture.svg") */}} +{{}} ``` +{% endraw %} **Output** ```html -{{ imgswap(main_src="/images/ferris.svg" swap_src="/images/ferris-gesture.svg") }} +{{}} ``` -{{ imgswap(main_src="/images/ferris.svg" swap_src="/images/ferris-gesture.svg") }} +{{}} -- cgit v1.3.1