diff options
| author | Volpeon <git@volpeon.ink> | 2021-11-13 18:03:55 +0100 |
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2021-11-13 18:03:55 +0100 |
| commit | c20ea9f6922557db29061a5d53c067ab20c734b9 (patch) | |
| tree | 8db62241b809d73c51f9e7f8c3189638d9700c88 /templates/layouts/deep_categorized_list.html | |
| parent | Fix persistent scrollbar (diff) | |
| download | volpeon.ink-c20ea9f6922557db29061a5d53c067ab20c734b9.tar.gz volpeon.ink-c20ea9f6922557db29061a5d53c067ab20c734b9.tar.bz2 volpeon.ink-c20ea9f6922557db29061a5d53c067ab20c734b9.zip | |
Improved list generation, remove index template
Diffstat (limited to 'templates/layouts/deep_categorized_list.html')
| -rw-r--r-- | templates/layouts/deep_categorized_list.html | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/templates/layouts/deep_categorized_list.html b/templates/layouts/deep_categorized_list.html new file mode 100644 index 0000000..eec16c9 --- /dev/null +++ b/templates/layouts/deep_categorized_list.html | |||
| @@ -0,0 +1,54 @@ | |||
| 1 | <section class="l-container l-container--pad-x l-container--pad-y l-container--content"> | ||
| 2 | <div class="s-headlines s-colored-links"> | ||
| 3 | <h1 class="u-mt0"><span class="s-headlines__title-inner">$title$</span></h1> | ||
| 4 | |||
| 5 | $body$ | ||
| 6 | </div> | ||
| 7 | |||
| 8 | <div class="c-card-list"> | ||
| 9 | $for(pages.all)$ | ||
| 10 | $if(it.pages)$ | ||
| 11 | <h2 class="c-card-list__category-header"> | ||
| 12 | <a href="$it.url.rel$">$it.title$</a> | ||
| 13 | </h2> | ||
| 14 | <div class="c-card-list__category-content$if(it.list_grid)$ c-card-list__category-content--grid$endif$"> | ||
| 15 | $for(pages.all.pages.all)$ | ||
| 16 | $for(pages.all.pages.all.pages.all)$ | ||
| 17 | <a href="$it.url.rel$" class="c-card-list__card c-card"> | ||
| 18 | $if(pages.all.list_read_indicators)$ | ||
| 19 | <div class="c-card__block c-card__block--indicator"></div> | ||
| 20 | $endif$ | ||
| 21 | $if(pages.all.pages.all.icon)$ | ||
| 22 | <svg class="c-card__block o-icon" width="1em" height="1em"> | ||
| 23 | <use href="/symbols.svg#icon-$pages.all.pages.all.icon$"></use> | ||
| 24 | </svg> | ||
| 25 | $endif$ | ||
| 26 | <div class="c-card__block c-card__block--main"> | ||
| 27 | <small class="u-db">$pages.all.pages.all.title$</small> | ||
| 28 | <strong class="u-db">$it.title$</strong> | ||
| 29 | </div> | ||
| 30 | $if(it.date)$ | ||
| 31 | <time datetime="$it.date.yyyy_mm_dd$" class="c-card__block u-fs0"> | ||
| 32 | <small class="u-dn@sm-hi"> | ||
| 33 | $it.date.short$ | ||
| 34 | </small> | ||
| 35 | <small class="u-dn@sm-lo"> | ||
| 36 | $it.date.long$ | ||
| 37 | </small> | ||
| 38 | </time> | ||
| 39 | $endif$ | ||
| 40 | $if(pages.all.list_icon)$ | ||
| 41 | <svg class="c-card__block o-icon" width="1em" height="1em"> | ||
| 42 | <use href="/symbols.svg#$pages.all.list_icon$"></use> | ||
| 43 | </svg> | ||
| 44 | $endif$ | ||
| 45 | </a> | ||
| 46 | $endfor$ | ||
| 47 | $endfor$ | ||
| 48 | </div> | ||
| 49 | $endif$ | ||
| 50 | $endfor$ | ||
| 51 | </div> | ||
| 52 | </section> | ||
| 53 | |||
| 54 | |||
