summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2023-01-10 19:28:37 +0100
committerVolpeon <git@volpeon.ink>2023-01-10 19:28:37 +0100
commit0ed7af89bdce76b01e2290e5bf65af60847a77f3 (patch)
tree0746e8ec39fe92c54f214eb36e50142e31e8c5e3 /scripts
parentBetter emojis, new intro (diff)
downloadvolpeon.ink-0ed7af89bdce76b01e2290e5bf65af60847a77f3.tar.gz
volpeon.ink-0ed7af89bdce76b01e2290e5bf65af60847a77f3.tar.bz2
volpeon.ink-0ed7af89bdce76b01e2290e5bf65af60847a77f3.zip
Fix
Diffstat (limited to 'scripts')
-rw-r--r--scripts/page.lua9
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)
217end 218end
218 219
219function process(global, build, meta, dir) 220function process(global, build, meta, dir)