From d57a8323c814aeca9ba1ff04b0f1879048d1039e Mon Sep 17 00:00:00 2001 From: shockrah Date: Tue, 8 Feb 2022 19:14:34 -0800 Subject: [PATCH] * Shortcodes for images --- content/posts/cola.md | 4 ++-- themes/shockrah.xyz/layouts/shortcodes/pic.html | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 themes/shockrah.xyz/layouts/shortcodes/pic.html diff --git a/content/posts/cola.md b/content/posts/cola.md index 699d5dc..a1fee5f 100644 --- a/content/posts/cola.md +++ b/content/posts/cola.md @@ -7,7 +7,7 @@ category: article image: /media/thumbnails/cola.jpg --- -{{< pic "/media/img/cola1/finish1.jpg" >}} +{{< pic "/media/img/cola1/finish.jpg" >}} # Taste @@ -58,7 +58,7 @@ Mix the following together: Mix this up in a pot and get it to simmer for 20 minutes. -{{< "/media/img/cola1/pot.jpg" >}} +{{< pic "/media/img/cola1/pot.jpg" >}} While the pot is simmering take the 2 cups of sugar and blitz it in a food processor. Doing this makes the sugar dissolve more easily later on when we diff --git a/themes/shockrah.xyz/layouts/shortcodes/pic.html b/themes/shockrah.xyz/layouts/shortcodes/pic.html new file mode 100644 index 0000000..880c639 --- /dev/null +++ b/themes/shockrah.xyz/layouts/shortcodes/pic.html @@ -0,0 +1 @@ +{{.Get 1}}