From 46f4d2925bfa418dfe678011c6066b792db894ab Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Thu, 1 Feb 2024 15:16:05 +0100 Subject: [PATCH] Toevoegen shortcode om sponsor in content te 'includen' --- themes/nluug/layouts/shortcodes/insert-sponsor.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 themes/nluug/layouts/shortcodes/insert-sponsor.html diff --git a/themes/nluug/layouts/shortcodes/insert-sponsor.html b/themes/nluug/layouts/shortcodes/insert-sponsor.html new file mode 100644 index 0000000..a8d1ef2 --- /dev/null +++ b/themes/nluug/layouts/shortcodes/insert-sponsor.html @@ -0,0 +1,12 @@ +{{ $id := .Get "id" }} +{{ with (index $.Site.Data.sponsoren $id) }} +
+ {{ .name }} + {{ if .icon_small }} + {{ $alttext := printf "Logo van %s" .name }} + {{ if .url }}{{ end }} + {{ partial "show-image.html" (dict "context" . "image" .icon_small "alt" $alttext) }} + {{ if .url }}{{ end }} + {{ end }} +
+{{ end }}