{% import "macros/url.html" as m_url %} {%- set g_base = get_url(path=``) ~ "/" %} {%- if config.extra.relative_urls %} {%- set g_here = page.permalink | trim_start_matches(pat=g_base) | split(pat=`/`) %} {%- else %} {%- set g_here = [] %} {%- endif %}
{% for asset in page.assets -%} {%- if asset is matching("[.](jpg|png)$") %} {%- set image = resize_image(path=asset, width=240, height=180) %} {%- set asset_name = asset | split(pat="/") | slice(start=-1) | join(sep="/") %} {{ alts[asset_name] | escape_xml | safe }} {%- endif %} {%- endfor %}