homepage/layouts/shortcodes/figure.html

4 lines
134 B
HTML
Raw Permalink Normal View History

2022-10-09 20:59:33 -06:00
<figure>
{{- $img := $.Page.Resources.GetMatch (.Get "src")}}
<img src="{{$img.RelPermalink}}" alt="{{.Get "alt"}}">
</figure>