From 4974bf7efe0a4428958679f6bdc7cc69dfc7291f Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 23 Oct 2023 10:39:32 +0100 Subject: wip: continuing with the pagination work --- content/stream/2023-10-21.md | 3 +++ layouts/shortcodes/streamimage.html | 3 +++ layouts/stream/list.html | 1 + 3 files changed, 7 insertions(+) create mode 100644 layouts/shortcodes/streamimage.html diff --git a/content/stream/2023-10-21.md b/content/stream/2023-10-21.md index 252e80e..8da0d97 100644 --- a/content/stream/2023-10-21.md +++ b/content/stream/2023-10-21.md @@ -7,8 +7,11 @@ tags: ["golf", "quicknotes", "cats"] A [ginger cat](../blog/cats/cat_kills/#the-perpetrators) beneath a stool, sheltering from the rain: + {{< figure src="img/cat_stool.jpg" >}} +{{< streamimage filename="cat_stool.jpg" >}} + --- [Storm Babet](https://www.metoffice.gov.uk/about-us/press-office/news/weather-and-climate/2023/storm-babet-has-been-named) has been and gone. Been pissing down for days. diff --git a/layouts/shortcodes/streamimage.html b/layouts/shortcodes/streamimage.html new file mode 100644 index 0000000..eb5d468 --- /dev/null +++ b/layouts/shortcodes/streamimage.html @@ -0,0 +1,3 @@ +{{ $filename := .Get "filename" }} +{{ $scratch := .Scratch }} + diff --git a/layouts/stream/list.html b/layouts/stream/list.html index 000d00e..127d2eb 100644 --- a/layouts/stream/list.html +++ b/layouts/stream/list.html @@ -12,6 +12,7 @@

this page is paginated

{{ else }}

this page is NOT paginated

+ {{ $.Scratch.Set "imgpath" "img/" }} {{ end }}
-- cgit v1.2.3