{% macro tnaHero(params) %} {%- set containerClasses = [params.classes] if params.classes else [] -%} <{{ 'header' if params.heading else 'div' }} class="tna-hero {{ ' '.join(containerClasses) }}" {%- if params.attributes %}{% for attribute, value in params.attributes.items() %} {{ attribute }}="{{ value }}"{% endfor %}{% endif %}>
{%- if params.imageCaption -%}
About this image
{{ params.imageCaption | safe }}
{%- endif -%} {%- if params.imageSources -%} {%- for source in params.imageSources %} {%- endfor %} {%- endif -%} {{ params.imageAlt }} {%- if params.heading -%}
{%- if params.heading -%}

{{ params.heading }}

{%- endif -%} {%- if params.text -%}

{{ params.text }}

{%- elif params.body -%} {{ params.body | safe }} {%- endif -%}
{%- endif -%}
{% endmacro %}