templates/apps.html

29 lines · 1447 bytes

 1{% extends "base.html" %}
 2
 3{% block title %}{{ page.title | lower }} · {{ site.title }}{% endblock %}
 4{% block description %}{{ page.keywords.description | default(site.description) }}{% endblock %}
 5
 6{% block content %}
 7<h1 class="page-label">{{ page.title }}</h1>
 8<div class="prose apps-intro">{{ body | safe }}</div>
 9
10<ul class="app-cards">
11  {% for page in pages | selectattr("source", "startingwith", "apps/") | rejectattr("source", "eq", "apps/index.org") | sort(attribute="keywords.weight") %}
12  <li class="app-card"{% if page.keywords.tint %} style="--tint: {{ page.keywords.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.url | replace("index.html", "") }}">{{ page.title }}</a></h2>
18        <p class="app-tagline">{{ page.keywords.tagline | default(page.keywords.description) }}</p>
19        {% if page.keywords.platforms %}<p class="app-meta">{{ page.keywords.platforms | replace(", ", " · ") }}</p>{% endif %}
20      </div>
21    </div>
22    <p class="app-card-actions">
23      {% if page.keywords.appstore %}<a href="{{ page.keywords.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 %}