gabe /presentato-ma
public · Issues · Pulls · Labels · Forks · Compare · Actions success · Badges · Packages
⭐
Log in to mark this repository.
missing
c86d3a9 · gmorell · 2026-11-02 02:03
Files changed
modified
?
+0
−0
Binary file — not rendered.
added
templates/_deck_grid.html
+22
−0
@@ -0,0 +1,22 @@
| 1 | +{# Card grid of decks. Expects `pages` (a section's pages) to be set by the includer. #} | |
| 2 | +<ul class="deck-grid"> | |
| 3 | + {% for deck in pages %} | |
| 4 | + {# Top-level slides only: vertical `--` stacks count as one. #} | |
| 5 | + {% set source = load_data(path='content/' ~ deck.relative_path, format='plain') %} | |
| 6 | + {% set slides = source | split(pat=" | |
| 7 | +--- | |
| 8 | +") | length %} | |
| 9 | + <li> | |
| 10 | + <a class="deck-card" href="{{ deck.permalink }}"> | |
| 11 | + <h2>{{ deck.title }}</h2> | |
| 12 | + {% if deck.description %}<p class="desc">{{ deck.description }}</p>{% endif %} | |
| 13 | + <footer> | |
| 14 | + {% if deck.date %}<time datetime="{{ deck.date }}">{{ deck.date | date(format="%Y-%m-%d") }}</time>{% endif %} | |
| 15 | + <span>{{ slides }} slides</span> | |
| 16 | + </footer> | |
| 17 | + </a> | |
| 18 | + </li> | |
| 19 | + {% else %} | |
| 20 | + <li class="empty">No presentations yet.</li> | |
| 21 | + {% endfor %} | |
| 22 | +</ul> |
Parents: 3aafbd2