website/layouts/shortcodes/featured_image.html

7 lines
195 B
HTML
Raw Permalink Normal View History

<figure>
{{ $img_src := .Get "src" }}
{{ $description := .Get "description" }}
<img alt="{{ $description }}" src="{{ $img_src }}" />
<figcaption>{{ $description }}</figcaption>
</figure>