From 0ed7af89bdce76b01e2290e5bf65af60847a77f3 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Tue, 10 Jan 2023 19:28:37 +0100 Subject: Fix --- scripts/page.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/page.lua b/scripts/page.lua index 606288a..f9f5742 100644 --- a/scripts/page.lua +++ b/scripts/page.lua @@ -82,14 +82,12 @@ function cat_to_list_cat(meta, allItems) if meta.description then description = pandoc.Para(meta.description) elseif not meta.no_description then - description = meta.content:filter(function (el) - return el.tag ~= "Str" or el.text ~= "¶" - end) + description = meta.content end return { title = meta.title, - description = pandoc.MetaBlocks(description), + description = description, last_update = meta.last_update, schema_type = meta.schema_type, url = meta.url, @@ -214,6 +212,9 @@ function process_base(meta) meta.thumbnail = meta.thumbnail and utils.stringify(meta.thumbnail) meta.prev = meta.prev and utils.stringify(meta.prev) meta.next = meta.next and utils.stringify(meta.next) + meta.content = meta.content:filter(function (el) + return el.tag ~= "Str" or el.text ~= "¶" + end) end function process(global, build, meta, dir) -- cgit v1.2.3-70-g09d2