diff options
-rw-r--r-- | scripts/page.lua | 9 |
1 files 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) | |||
82 | if meta.description then | 82 | if meta.description then |
83 | description = pandoc.Para(meta.description) | 83 | description = pandoc.Para(meta.description) |
84 | elseif not meta.no_description then | 84 | elseif not meta.no_description then |
85 | description = meta.content:filter(function (el) | 85 | description = meta.content |
86 | return el.tag ~= "Str" or el.text ~= "¶" | ||
87 | end) | ||
88 | end | 86 | end |
89 | 87 | ||
90 | return { | 88 | return { |
91 | title = meta.title, | 89 | title = meta.title, |
92 | description = pandoc.MetaBlocks(description), | 90 | description = description, |
93 | last_update = meta.last_update, | 91 | last_update = meta.last_update, |
94 | schema_type = meta.schema_type, | 92 | schema_type = meta.schema_type, |
95 | url = meta.url, | 93 | url = meta.url, |
@@ -214,6 +212,9 @@ function process_base(meta) | |||
214 | meta.thumbnail = meta.thumbnail and utils.stringify(meta.thumbnail) | 212 | meta.thumbnail = meta.thumbnail and utils.stringify(meta.thumbnail) |
215 | meta.prev = meta.prev and utils.stringify(meta.prev) | 213 | meta.prev = meta.prev and utils.stringify(meta.prev) |
216 | meta.next = meta.next and utils.stringify(meta.next) | 214 | meta.next = meta.next and utils.stringify(meta.next) |
215 | meta.content = meta.content:filter(function (el) | ||
216 | return el.tag ~= "Str" or el.text ~= "¶" | ||
217 | end) | ||
217 | end | 218 | end |
218 | 219 | ||
219 | function process(global, build, meta, dir) | 220 | function process(global, build, meta, dir) |