From fd8aa54a4ce623d55219b1865e23b93b3b26e265 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Wed, 27 Jul 2022 19:10:15 +0200 Subject: Added draft feature --- templates/layouts/page.html | 6 ++++++ templates/partials/gallery_card.html | 7 +++++-- templates/partials/grid_card.html | 7 +++++-- templates/partials/list_card.html | 16 +++++++--------- 4 files changed, 23 insertions(+), 13 deletions(-) (limited to 'templates') diff --git a/templates/layouts/page.html b/templates/layouts/page.html index c1bd051..b93f45f 100644 --- a/templates/layouts/page.html +++ b/templates/layouts/page.html @@ -12,6 +12,12 @@ $endif$ + $if(draft)$ + + Draft + + $endif$ +

$title$

diff --git a/templates/partials/gallery_card.html b/templates/partials/gallery_card.html index 3020c2d..e319fa4 100644 --- a/templates/partials/gallery_card.html +++ b/templates/partials/gallery_card.html @@ -30,13 +30,16 @@ $if(it.thumbnail)$ $endif$
- $if(it.subtitle)$ + $if(it.draft)$ + $it.title$ +
Draft
+ $elseif(it.subtitle)$ $it.title$ $it.subtitle$ $elseif(it.category)$ $it.category$ $it.title$ - $elseif(it.last_update)$ + $elseif(it.show_date)$
+ $if(it.draft)$ +
Draft
+ $elseif(it.subtitle)$ + $it.subtitle$ $elseif(it.category)$ - - $it.category$ - - $elseif(it.last_update)$ + $it.category$ + $elseif(it.show_date)$