Skip to content

Commit d8a2a05

Browse files
committed
Fix index and add thumbnails for apps
1 parent 8a07268 commit d8a2a05

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
109 KB
Loading
58.7 KB
Loading

panel/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,18 +264,18 @@
264264
</section>
265265
<section id="cards">
266266
<ul class="cards-grid">
267-
{% for item in sorted(items, key=lambda item: item[1:].replace("_", " ").title()) %}
267+
{% for item in sorted(items, key=lambda item: item[1]) %}
268268
<li class="card">
269-
<a class="card-link" href=".{{ item }}" id="{{ item }}">
269+
<a class="card-link" href=".{{ item[0] }}" id="{{ item[0] }}">
270270
<fast-card class="gallery-item">
271-
<object data="thumbnails{{ item }}.png" type="image/png">
271+
<object data="_static/thumbnails{{ item[0] }}.png" type="image/png">
272272
<svg class="card-image" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-window" viewBox="0 0 16 16">
273273
<path d="M2.5 4a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1zm2-.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0zm1 .5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1z"/>
274274
<path d="M2 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2H2zm13 2v2H1V3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1zM2 14a1 1 0 0 1-1-1V6h14v7a1 1 0 0 1-1 1H2z"/>
275275
</svg>
276276
</object>
277277
<div class="card-content">
278-
<h2 class="card-header">{{ item[1:].replace("_", " ").title() }}</h2>
278+
<h2 class="card-header">{{ item[1] }}</h2>
279279
</div>
280280
</fast-card>
281281
</a>

0 commit comments

Comments
 (0)