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