{% if section.assets and filename %} <div class="file"> {% if title %} <div class="title">{{ title }}</div> {% else %} <div class="title">{{ filename }}</div> {% endif %} {% for asset in section.assets %} {% if asset is matching(section.path ~ filename ~ "\..*$") %} <a href="{{ get_url(path=asset) }}" class="format">{{ asset | split(pat=".") | last }}</a> {% endif %} {% endfor %} </div> {% endif %}