templates/partials/apps.html
23 lines · 1183 bytes
1{% import "data/upcoming.html" as upcoming %}
2<ul class="app-rows">
3 {% for page in pages | selectattr("source", "startingwith", "apps/") | rejectattr("source", "eq", "apps/index.org") | sort(attribute="keywords.weight") %}
4 <li{% if page.keywords.tint %} style="--tint: {{ page.keywords.tint }}"{% endif %}>
5 <a class="app-row" href="/{{ page.url | replace("index.html", "") }}">
6 {% set icon_class = "app-icon app-icon-xs" %}{% include "partials/app-icon.html" %}
7 <span class="app-row-name">{{ page.title }}</span>
8 <span class="app-row-desc">{{ page.keywords.tagline | default(page.keywords.description) }}</span>
9 <span class="app-row-go" aria-hidden="true">→</span>
10 </a>
11 </li>
12 {% endfor %}
13 {% for app in upcoming.apps %}
14 <li style="--tint: {{ app.keywords.tint }}">
15 <div class="app-row">
16 {% set icon_page = app %}{% set icon_class = "app-icon app-icon-xs" %}{% include "partials/app-icon.html" %}
17 <span class="app-row-name">{{ app.title }}</span>
18 <span class="app-row-desc">{{ app.keywords.description }}</span>
19 </div>
20 </li>
21 {% endfor %}
22</ul>
23<p class="dir-more"><a href="/apps/">all apps →</a></p>