From 19d3eb0bdfe505715d3b9f62a3cf8d340291a144 Mon Sep 17 00:00:00 2001 From: Volpeon <git@volpeon.ink> Date: Thu, 11 Nov 2021 09:14:38 +0100 Subject: Show profiles on home page again; general updates --- templates/layouts/list.html | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) (limited to 'templates/layouts/list.html') diff --git a/templates/layouts/list.html b/templates/layouts/list.html index 4831228..c0045c0 100644 --- a/templates/layouts/list.html +++ b/templates/layouts/list.html @@ -5,12 +5,19 @@ $body$ </div> - <div class="c-post-list"> - <div class="c-post-list__category-content"> + <div class="c-card-list"> + <div class="c-card-list__category-content$if(list_grid)$ c-card-list__category-content--grid$endif$"> $if(show_dates)$ $for(pages.desc_date)$ - <a href="$it.url.rel$" class="c-post-list__post c-card"> - <div class="c-card__block c-card__block--indicator"></div> + <a href="$it.url.rel$" class="c-card-list__card c-card"> + $if(show_read_indicators)$ + <div class="c-card__block c-card__block--indicator"></div> + $endif$ + $if(icon)$ + <svg class="c-card__block o-icon"> + <use href="/symbols.svg#icon-$icon$"></use> + </svg> + $endif$ <div class="c-card__block c-card__block--main"> $it.title$ </div> @@ -26,8 +33,15 @@ $body$ $endfor$ $else$ $for(pages.asc_title)$ - <a href="$it.url.rel$" class="c-post-list__post c-card"> - <div class="c-card__block c-card__block--indicator"></div> + <a href="$it.url.rel$" class="c-card-list__card c-card"> + $if(show_read_indicators)$ + <div class="c-card__block c-card__block--indicator"></div> + $endif$ + $if(icon)$ + <svg class="c-card__block o-icon"> + <use href="/symbols.svg#icon-$icon$"></use> + </svg> + $endif$ <div class="c-card__block c-card__block--main"> $it.title$ </div> -- cgit v1.2.3-70-g09d2