From f9a74f5ca7c1e919bba46d99d65a7b3a893a7bd7 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sun, 14 Nov 2021 10:28:18 +0100 Subject: List improvements --- scripts/metadata_filter.lua | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'scripts') diff --git a/scripts/metadata_filter.lua b/scripts/metadata_filter.lua index b16d472..b6df703 100644 --- a/scripts/metadata_filter.lua +++ b/scripts/metadata_filter.lua @@ -200,7 +200,7 @@ function generate_list(meta) return meta.pages.all:map(function(cat) return { title = cat.title, - content = pandoc.utils.stringify(cat.content), + content = cat.content, url = cat.url, grid = cat.list_grid, items = cat.pages.all:map(function(p) @@ -220,7 +220,7 @@ function generate_list(meta) return meta.pages.all:map(function(cat) return { title = cat.title, - content = pandoc.utils.stringify(cat.content), + content = cat.content, url = cat.url, grid = cat.list_grid, items = cat.pages.all:flatMap(function(c) @@ -228,7 +228,8 @@ function generate_list(meta) return c.pages.all:map(function(p) return { title = p.title, - subtitle = p.subtitle or c.title, + subtitle = p.subtitle, + category = c.title, url = p.url, icon = p.icon or c.icon, post_icon = c.list_post_icon or cat.list_post_icon, @@ -241,9 +242,9 @@ function generate_list(meta) title = c.title, subtitle = c.subtitle, url = c.url, - icon = c.icon or meta.icon, - post_icon = meta.list_post_icon, - indicator = meta.list_read_indicators, + icon = c.icon or cat.icon, + post_icon = cat.list_post_icon, + indicator = cat.list_read_indicators, }) return l end -- cgit v1.2.3-70-g09d2