From c2ddbce74e8ae0f2f688497715e2382704ae7300 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Thu, 4 Aug 2022 12:08:04 +0200 Subject: Show page date depending on list layout --- scripts/page.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/page.lua') diff --git a/scripts/page.lua b/scripts/page.lua index 3df55ec..3f77464 100644 --- a/scripts/page.lua +++ b/scripts/page.lua @@ -73,7 +73,7 @@ function d1_page_to_list_item(meta, p) subtitle = p.subtitle, date = p.date, last_update = p.last_update, - show_date = meta.list_order == "date_desc", + show_date = p.show_date, schema_type = p.schema_type, draft = p.draft, position = p.position, @@ -94,7 +94,7 @@ function d2_page_to_list_item(meta, cat, p, set_cat_title) category = set_cat_title and cat.title, date = p.date, last_update = p.last_update, - show_date = cat.list_order == "date_desc", + show_date = p.show_date, schema_type = p.schema_type, draft = p.draft, position = p.position, -- cgit v1.2.3-54-g00ecf