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 }}