{%- set html = node.attrs.html -%} {%- set provider_name = node.attrs.provider|default('link')|lower -%}
{%- for item in node.content -%} {%- with template=item.type + '.html', node=item -%} {%- include template -%} {%- endwith -%} {%- endfor -%} {%- if node.attrs.type == "video" -%} {%- if node.attrs.caption and node.attrs.caption|trim -%}
{{node.attrs.html}}
{{node.attrs.caption}}
{%- else -%}
{{html}}
{%- endif -%} {%- else -%}
{{html}}
{%- endif -%}