diff options
-rw-r--r-- | content/stream/2023-10-21.md | 3 | ||||
-rw-r--r-- | layouts/shortcodes/streamimage.html | 3 | ||||
-rw-r--r-- | layouts/stream/list.html | 1 |
3 files changed, 7 insertions, 0 deletions
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 }} +<img src="{{$scratch.Get "imgpath" }}/{{ $filename }}"> 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 @@ <p>this page is paginated</p> {{ else }} <p>this page is NOT paginated</p> + {{ $.Scratch.Set "imgpath" "img/" }} {{ end }} <div style="margin-bottom: 1em;"> |