From 7c655a95058aa753355251eb78b83d31d44972ab Mon Sep 17 00:00:00 2001 From: Volpeon Date: Tue, 23 Aug 2022 14:07:20 +0200 Subject: Better navigation of related content --- templates/partials/gallery_card.html | 52 +++++++++++++++--------- templates/partials/grid_card.html | 76 +++++++++++++++++++----------------- templates/partials/list_card.html | 16 ++------ templates/partials/related.html | 17 +------- 4 files changed, 79 insertions(+), 82 deletions(-) (limited to 'templates') diff --git a/templates/partials/gallery_card.html b/templates/partials/gallery_card.html index 38daa0e..6802faa 100644 --- a/templates/partials/gallery_card.html +++ b/templates/partials/gallery_card.html @@ -19,30 +19,47 @@ /> +
$if(it.indicator)$
$endif$ - $if(it.icon)$ + $if(it.is_prev)$ + + $elseif(it.is_next)$ + + $elseif(it.icon)$ $endif$
- $if(it.subtitle)$ + $if(it.is_prev)$ + Previous +
+ $it.title$ + $if(it.draft)$Draft$endif$ +
+ $elseif(it.is_next)$ + Next +
+ $it.title$ + $if(it.draft)$Draft$endif$ +
+ $elseif(it.subtitle)$
$it.title$ $if(it.draft)$ Draft $endif$
- - $it.subtitle$ - + $it.subtitle$ $elseif(it.category)$ - - $it.category$ - + $it.category$
$it.title$ @@ -59,20 +76,19 @@
$it.title$ - $if(it.draft)$ - Draft - $endif$ + $if(it.draft)$Draft$endif$
$else$ - - $it.title$ - - $if(it.draft)$ - Draft - $endif$ + $it.title$ + $if(it.draft)$Draft$endif$ $endif$
- $if(it.post_icon)$ + $if(it.is_next)$ + + $elseif(it.is_prev)$ + $elseif(it.post_icon)$ diff --git a/templates/partials/grid_card.html b/templates/partials/grid_card.html index 9a0b06e..e75fa51 100644 --- a/templates/partials/grid_card.html +++ b/templates/partials/grid_card.html @@ -9,38 +9,45 @@ $endif$ >
- $if(it.indicator)$ -
- $endif$ - $if(it.icon)$ + $if(it.is_prev)$ + + $elseif(it.is_next)$ + + $elseif(it.icon)$ + $elseif(it.indicator)$ +
$endif$
- $if(it.subtitle)$ + $if(it.is_prev)$ + Previous
- - $it.title$ - - $if(it.draft)$ - Draft - $endif$ + $it.title$ + $if(it.draft)$Draft$endif$
- - $it.subtitle$ - + $elseif(it.is_next)$ + Next +
+ $it.title$ + $if(it.draft)$Draft$endif$ +
+ $elseif(it.subtitle)$ +
+ $it.title$ + $if(it.draft)$Draft$endif$ +
+ $it.subtitle$ $elseif(it.category)$ - - $it.category$ - + $it.category$
- - $it.title$ - - $if(it.draft)$ - Draft - $endif$ + $it.title$ + $if(it.draft)$Draft$endif$
$elseif(it.show_date)$ @@ -49,23 +56,20 @@
- - $it.title$ - - $if(it.draft)$ - Draft - $endif$ + $it.title$ + $if(it.draft)$Draft$endif$
$else$ - - $it.title$ - - $if(it.draft)$ - Draft - $endif$ + $it.title$ + $if(it.draft)$Draft$endif$ $endif$
- $if(it.post_icon)$ + $if(it.is_next)$ + + $elseif(it.is_prev)$ + $elseif(it.post_icon)$ diff --git a/templates/partials/list_card.html b/templates/partials/list_card.html index e12f62f..713919a 100644 --- a/templates/partials/list_card.html +++ b/templates/partials/list_card.html @@ -18,21 +18,13 @@ $endif$
- - $it.title$ - - $if(it.draft)$ - Draft - $endif$ + $it.title$ + $if(it.draft)$Draft$endif$
$if(it.subtitle)$ - - $it.subtitle$ - + $it.subtitle$ $elseif(it.category)$ - - $it.category$ - + $it.category$ $elseif(it.show_date)$
-- cgit v1.2.3-70-g09d2