vmems-website/layouts/shortcodes/featured_image.html

6 lines
195 B
HTML

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