templates/partials/app-art.html

13 lines · 701 bytes

 1{# Header image when supplied, otherwise up to three screenshots fanned over the tint.
 2   Screenshots are #+SHOT_1: .. #+SHOT_20: keywords, "src | alt | caption". #}
 3<div class="{{ art_class | default("app-art") }}{% if not page.keywords.hero %} app-art-composed{% endif %}">
 4  {% if page.keywords.hero %}
 5  <img src="{{ page.keywords.hero }}" alt="">
 6  {% elif page.keywords.shot_1 %}
 7  {% for i in range(1, 4) if page.keywords["shot_" ~ i] %}{% set s = page.keywords["shot_" ~ i] | split(" | ") %}
 8  <img class="fan fan-{{ loop.index }}" src="{{ s[0] }}" alt="" loading="lazy">
 9  {% endfor %}
10  {% else %}
11  <span class="app-art-mark" aria-hidden="true">{{ page.title }}</span>
12  {% endif %}
13</div>