From 4a13dd4156d6468cbfd5139cdf12410bc9c3b07d Mon Sep 17 00:00:00 2001 From: Volpeon Date: Thu, 16 Dec 2021 12:19:50 +0100 Subject: Support generic list layouts --- scripts/metadata_filter.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/metadata_filter.lua b/scripts/metadata_filter.lua index d5a2909..a3675d9 100644 --- a/scripts/metadata_filter.lua +++ b/scripts/metadata_filter.lua @@ -215,7 +215,7 @@ function generate_list(meta) description = (cat.description and pandoc.MetaBlocks(pandoc.Para(cat.description))) or (not cat.no_description and cat.content), url = cat.url, - grid = cat.list_grid, + layout = cat.list_layout, items = items, total = tostring(#allItems), omitted = omitted ~= 0 and tostring(omitted), @@ -259,7 +259,7 @@ function generate_list(meta) description = (cat.description and pandoc.MetaBlocks(pandoc.Para(cat.description))) or (not cat.no_description and cat.content), url = cat.url, - grid = cat.list_grid, + layout = cat.list_layout, items = items, total = tostring(#allItems), omitted = omitted ~= 0 and tostring(omitted), @@ -276,6 +276,7 @@ function process(global, meta) meta.url = resolve_url(global.site.url, global.file_out, meta.url or meta.file_out) meta.title = (meta.title and pandoc.utils.stringify(meta.title)) or "" if meta.list_order then meta.list_order = pandoc.utils.stringify(meta.list_order) end + meta.list_layout = meta.list_layout and prep_layout(meta.list_layout) if meta.position then meta.position = pandoc.utils.stringify(meta.position) end if meta.feed then -- cgit v1.2.3-70-g09d2