From 20c5ad5a7a737d721cb39b75852a79f20502da74 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sun, 31 Jul 2022 10:00:03 +0200 Subject: Simplified "list" list layout code --- scripts/metadata.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/metadata.lua b/scripts/metadata.lua index 142cb8b..a451040 100644 --- a/scripts/metadata.lua +++ b/scripts/metadata.lua @@ -297,7 +297,7 @@ function process(global, meta) meta.slug = slug(meta.title) meta.schema_type = (meta.schema_type and pandoc.utils.stringify(meta.schema_type)) or "CreativeWork" 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) + meta.list_layout = prep_layout(meta.list_layout or "list") if meta.list_limit then meta.list_limit = tonumber(pandoc.utils.stringify(meta.list_limit)) end if meta.position then meta.position = tonumber(pandoc.utils.stringify(meta.position)) end -- cgit v1.2.3-70-g09d2