From 577bb0c8efadfb7c60e0fed8e46f986bd6edcb7a Mon Sep 17 00:00:00 2001 From: mms Date: Fri, 22 Dec 2023 22:22:14 +0100 Subject: feat: org for st, fin --- layouts/shortcodes/img-r.html | 17 +++++++++++++++++ layouts/shortcodes/menu.html | 13 +++++++++++++ layouts/shortcodes/recent-updates.html | 14 ++++++++++---- 3 files changed, 40 insertions(+), 4 deletions(-) create mode 100644 layouts/shortcodes/img-r.html create mode 100644 layouts/shortcodes/menu.html (limited to 'layouts') diff --git a/layouts/shortcodes/img-r.html b/layouts/shortcodes/img-r.html new file mode 100644 index 0000000..4340792 --- /dev/null +++ b/layouts/shortcodes/img-r.html @@ -0,0 +1,17 @@ +{{- $file := .Get 0 }} +{{- $path := printf "content_images/%s" $file}} +{{- $img := resources.Get $path }} +{{- $img1x := $img.Resize "150x webp" }} +{{- $img2x := $img.Resize "300x webp" }} +{{- $caption := .Inner}} + {{ $caption }} diff --git a/layouts/shortcodes/menu.html b/layouts/shortcodes/menu.html new file mode 100644 index 0000000..1b3dc54 --- /dev/null +++ b/layouts/shortcodes/menu.html @@ -0,0 +1,13 @@ +{{- $menuID := .Get 0 }} +{{- $caption := .Inner }} + + diff --git a/layouts/shortcodes/recent-updates.html b/layouts/shortcodes/recent-updates.html index 24d3c95..959ebf5 100644 --- a/layouts/shortcodes/recent-updates.html +++ b/layouts/shortcodes/recent-updates.html @@ -1,10 +1,16 @@ {{ $category := .Get 0 }} {{ $filter := slice $category }} {{ $more_link := .Get 1 }} -{{ .Inner }} +{{ $caption := .Inner }} -- cgit v1.2.3