vf-figure.njk 351 Bytes
Newer Older
Ken Hawkins's avatar
Ken Hawkins committed
1 2
<figure {# You're using an ID? Really?? That'll go here -#}
{%- if id -%} id="{{-id-}}" {%- endif -%}
3 4
class="vf-figure
{%- if override_class %} | {{override_class}}{% endif -%}">
Ken Hawkins's avatar
Ken Hawkins committed
5
  <img class="vf-figure__image" src="{{imageUrl}}" alt="{{alttext}}">
6
  <figcaption class="vf-figure__caption">{{- html | safe if html else text -}}</figcaption>
Ken Hawkins's avatar
Ken Hawkins committed
7
</figure>