{% component images(section, page, open: bool = false, inline: bool = false, style: string = "") %} {% for asset in page?.assets | default(value=section?.assets | default(value=[])) %} {% set filename_extension = asset | split(pat="/") | last | split(pat='\\') | last %} {% set filename = asset | split(pat="/") | last | split(pat='\\') | last | split(pat='.') | first %} {% set title = filename | replace(from="---", to=" - ") | replace(from="--", to=": ") | replace(from="_", to=" ") | replace(from="δΈ€", to="") %} {{}} {% endfor %} {% endcomponent images %} {% component image(title: string, file: string, open: bool = false, inline: bool = false, style: string = "") %} {% if inline %}
{% endif %} {% if open | default(value=false) %}
{{ title | default(value=title) | safe }} {% else %}
{{ body | default(value=title) | safe }} {% endif %} ![{{ title }}]({{ file | replace(from="/", to="") }})
{% if inline %}
{% endif %} {% endcomponent image %}