bunteshaus.de/themes/buha/layouts/shortcodes/picture.html

8 lines
321 B
HTML
Raw Normal View History

2022-04-04 11:21:48 +02:00
{{ $nr := index .Params 0 }}
{{ $alt := "sry_no_desc" }}
{{ if index .Params 1}}{{ $alt = index .Params 1 }}{{ end }}
{{- $pic := index ($.Page.Resources.ByType "image") $nr -}}
<div class="picture_outer borderrad25">
<img src="{{- $pic.Permalink -}}" alt="{{ $alt }}" class="picture_small_center borderrad25" />
</div>