summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2022-06-18 08:47:28 +0200
committerVolpeon <git@volpeon.ink>2022-06-18 08:47:28 +0200
commit7050b8141eae25a0cdc394fd195e66dd9af29ad7 (patch)
tree5ff32ef829157143f6f47278d114900b23f7616c /scripts
parentUse dvh unit to make exhibit component fill viewport (diff)
downloadvolpeon.ink-7050b8141eae25a0cdc394fd195e66dd9af29ad7.tar.gz
volpeon.ink-7050b8141eae25a0cdc394fd195e66dd9af29ad7.tar.bz2
volpeon.ink-7050b8141eae25a0cdc394fd195e66dd9af29ad7.zip
Improved exhibit
Diffstat (limited to 'scripts')
-rw-r--r--scripts/metadata_filter.lua14
1 files changed, 10 insertions, 4 deletions
diff --git a/scripts/metadata_filter.lua b/scripts/metadata_filter.lua
index 5e71994..4f7200a 100644
--- a/scripts/metadata_filter.lua
+++ b/scripts/metadata_filter.lua
@@ -290,16 +290,22 @@ function process(global, meta)
290 if meta.list_limit then meta.list_limit = tonumber(pandoc.utils.stringify(meta.list_limit)) end 290 if meta.list_limit then meta.list_limit = tonumber(pandoc.utils.stringify(meta.list_limit)) end
291 if meta.position then meta.position = pandoc.utils.stringify(meta.position) end 291 if meta.position then meta.position = pandoc.utils.stringify(meta.position) end
292 292
293 if meta.images then
294 for i = 1, #meta.images do
295 local image = meta.images[i]
296 image.url = make_absolute(pandoc.utils.stringify(image.url), meta.file_out)
297 image.url = resolve_url(global.site.url, global.file_out, image.url)
298 end
299 end
300
293 if meta.feed then 301 if meta.feed then
294 if meta.file_out:match(".html$") then 302 if meta.file_out:match(".html$") then
295 meta.feed = { 303 meta.feed = {
296 url = resolve_url(global.site.url, global.file_out, 304 url = resolve_url(global.site.url, global.file_out, meta.file_out:gsub(".html$", ".xml")),
297 meta.file_out:gsub(".html$", ".xml")),
298 } 305 }
299 else 306 else
300 meta.page = { 307 meta.page = {
301 url = resolve_url(global.site.url, global.file_out, 308 url = resolve_url(global.site.url, global.file_out, meta.file_out:gsub(".xml$", ".html")),
302 meta.file_out:gsub(".xml$", ".html")),
303 } 309 }
304 end 310 end
305 end 311 end