templates/apps.html

29 lines · 1326 bytes

 1{% extends "base.html" %}
 2
 3{% block title %}{{ section.title | lower }} · {{ config.title }}{% endblock title %}
 4{% block description %}{{ section.description | default(value=config.description) }}{% endblock description %}
 5
 6{% block content %}
 7<h1 class="page-label">{{ section.title }}</h1>
 8<div class="prose apps-intro">{{ section.content | safe }}</div>
 9
10<ul class="app-cards">
11  {% for page in section.pages %}
12  <li class="app-card"{% if page.extra.tint %} style="--tint: {{ page.extra.tint }}"{% endif %}>
13    {% include "partials/app-art.html" %}
14    <div class="app-card-body">
15      {% set icon_class = "app-icon app-icon-sm" %}{% include "partials/app-icon.html" %}
16      <div class="app-id">
17        <h2 class="app-name"><a class="app-card-link" href="{{ page.permalink | safe }}">{{ page.title }}</a></h2>
18        <p class="app-tagline">{{ page.extra.tagline | default(value=page.description) }}</p>
19        {% if page.extra.platforms %}<p class="app-meta">{{ page.extra.platforms | join(sep=" · ") }}</p>{% endif %}
20      </div>
21    </div>
22    <p class="app-card-actions">
23      {% if page.extra.appstore %}<a href="{{ page.extra.appstore }}">app store</a>{% endif %}
24      <span class="app-card-more" aria-hidden="true">details &rarr;</span>
25    </p>
26  </li>
27  {% endfor %}
28</ul>
29{% endblock content %}