{# inlineSvg ================= Description @param {string} name = Classname #} {# Build Element Block #} {# Test if SVG #} {% if data.svg.first().extension in ['svg'] %}
{# Inline Style #} {% if options.cssCode %} {% endif %} {# Yield SVG Code Inline #} {{ craft.inlin.er(data.svg.first().url, true) | raw }} {% if data.caption %} {% include '_components/caption.html' with { caption: data.caption, layout: 'align' } %} {% endif %}
{% endif %}