templates/partials/app-art.html
12 lines · 592 bytes
1{# Header image when supplied, otherwise up to three screenshots fanned over the tint. #}
2<div class="{{ art_class | default(value="app-art") }}{% if not page.extra.header %} app-art-composed{% endif %}">
3 {% if page.extra.header %}
4 <img src="{{ page.extra.header }}" alt="">
5 {% elif page.extra.screenshots %}
6 {% for s in page.extra.screenshots %}{% if loop.index <= 3 %}
7 <img class="fan fan-{{ loop.index }}" src="{{ s.src }}" alt="" loading="lazy">
8 {% endif %}{% endfor %}
9 {% else %}
10 <span class="app-art-mark" aria-hidden="true">{{ page.title }}</span>
11 {% endif %}
12</div>