vf-figure.njk 664 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
<figure
  {#- You're using an ID? Really?? That'll go here -#}
  {%- if id -%} id="{{-id-}}" {%- endif %}

  class="vf-figure
  {%- if vf_figure__align_inline_start %} vf-figure--align vf-figure--align-inline-start{% endif -%}
  {%- if vf_figure__align_inline_end %} vf-figure--align vf-figure--align-inline-end{% endif -%}
  {%- if vf_figure__align_centered %} vf-figure--align vf-figure--align-centered{% endif -%}

  {%- if override_class %} | {{override_class}}{% endif -%}"
>

Ken Hawkins's avatar
Ken Hawkins committed
13
  <img class="vf-figure__image" src="{{imageUrl}}" alt="{{alttext}}">
14 15 16 17 18

  <figcaption class="vf-figure__caption">
    {{- html | safe if html else text -}}
  </figcaption>

Ken Hawkins's avatar
Ken Hawkins committed
19
</figure>