diff options
author | Volpeon <git@volpeon.ink> | 2022-08-04 12:08:04 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2022-08-04 12:08:04 +0200 |
commit | c2ddbce74e8ae0f2f688497715e2382704ae7300 (patch) | |
tree | 24d9ddaa24f1efa46192c246d04cd7f25fcd8c46 /scripts/page.lua | |
parent | Made parent page accessible; more flexible main menu by using patterns insted... (diff) | |
download | volpeon.ink-c2ddbce74e8ae0f2f688497715e2382704ae7300.tar.gz volpeon.ink-c2ddbce74e8ae0f2f688497715e2382704ae7300.tar.bz2 volpeon.ink-c2ddbce74e8ae0f2f688497715e2382704ae7300.zip |
Show page date depending on list layout
Diffstat (limited to 'scripts/page.lua')
-rw-r--r-- | scripts/page.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
73 | subtitle = p.subtitle, | 73 | subtitle = p.subtitle, |
74 | date = p.date, | 74 | date = p.date, |
75 | last_update = p.last_update, | 75 | last_update = p.last_update, |
76 | show_date = meta.list_order == "date_desc", | 76 | show_date = p.show_date, |
77 | schema_type = p.schema_type, | 77 | schema_type = p.schema_type, |
78 | draft = p.draft, | 78 | draft = p.draft, |
79 | position = p.position, | 79 | position = p.position, |
@@ -94,7 +94,7 @@ function d2_page_to_list_item(meta, cat, p, set_cat_title) | |||
94 | category = set_cat_title and cat.title, | 94 | category = set_cat_title and cat.title, |
95 | date = p.date, | 95 | date = p.date, |
96 | last_update = p.last_update, | 96 | last_update = p.last_update, |
97 | show_date = cat.list_order == "date_desc", | 97 | show_date = p.show_date, |
98 | schema_type = p.schema_type, | 98 | schema_type = p.schema_type, |
99 | draft = p.draft, | 99 | draft = p.draft, |
100 | position = p.position, | 100 | position = p.position, |