summaryrefslogtreecommitdiff
path: root/layouts/shortcodes/img-pull-right.html
blob: 8d73f4828ae49da26434586d8dbd286efb6f0428 (plain)
1
2
3
4
5
6
{{- $file := .Get 0 }}
{{- $path := printf "content_images/%s" $file}}
{{- $img := resources.Get $path }}
{{- $img = $img.Resize "150x webp" }}
{{- $caption := .Get 1}}
 <img class="float-right" alt="{{ $caption }}" src="{{ $img.Permalink }}" width="{{ $img.Width }}" height="{{ $img.Height }}">