summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2021-12-16 12:19:50 +0100
committerVolpeon <git@volpeon.ink>2021-12-16 12:19:50 +0100
commit4a13dd4156d6468cbfd5139cdf12410bc9c3b07d (patch)
treef92dc286a25aac2f833b8feb8ac27e502af0cf29 /scripts
parentAdded RSS feeds (diff)
downloadvolpeon.ink-4a13dd4156d6468cbfd5139cdf12410bc9c3b07d.tar.gz
volpeon.ink-4a13dd4156d6468cbfd5139cdf12410bc9c3b07d.tar.bz2
volpeon.ink-4a13dd4156d6468cbfd5139cdf12410bc9c3b07d.zip
Support generic list layouts
Diffstat (limited to 'scripts')
-rw-r--r--scripts/metadata_filter.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/metadata_filter.lua b/scripts/metadata_filter.lua
index d5a2909..a3675d9 100644
--- a/scripts/metadata_filter.lua
+++ b/scripts/metadata_filter.lua
@@ -215,7 +215,7 @@ function generate_list(meta)
215 description = (cat.description and pandoc.MetaBlocks(pandoc.Para(cat.description))) or 215 description = (cat.description and pandoc.MetaBlocks(pandoc.Para(cat.description))) or
216 (not cat.no_description and cat.content), 216 (not cat.no_description and cat.content),
217 url = cat.url, 217 url = cat.url,
218 grid = cat.list_grid, 218 layout = cat.list_layout,
219 items = items, 219 items = items,
220 total = tostring(#allItems), 220 total = tostring(#allItems),
221 omitted = omitted ~= 0 and tostring(omitted), 221 omitted = omitted ~= 0 and tostring(omitted),
@@ -259,7 +259,7 @@ function generate_list(meta)
259 description = (cat.description and pandoc.MetaBlocks(pandoc.Para(cat.description))) or 259 description = (cat.description and pandoc.MetaBlocks(pandoc.Para(cat.description))) or
260 (not cat.no_description and cat.content), 260 (not cat.no_description and cat.content),
261 url = cat.url, 261 url = cat.url,
262 grid = cat.list_grid, 262 layout = cat.list_layout,
263 items = items, 263 items = items,
264 total = tostring(#allItems), 264 total = tostring(#allItems),
265 omitted = omitted ~= 0 and tostring(omitted), 265 omitted = omitted ~= 0 and tostring(omitted),
@@ -276,6 +276,7 @@ function process(global, meta)
276 meta.url = resolve_url(global.site.url, global.file_out, meta.url or meta.file_out) 276 meta.url = resolve_url(global.site.url, global.file_out, meta.url or meta.file_out)
277 meta.title = (meta.title and pandoc.utils.stringify(meta.title)) or "" 277 meta.title = (meta.title and pandoc.utils.stringify(meta.title)) or ""
278 if meta.list_order then meta.list_order = pandoc.utils.stringify(meta.list_order) end 278 if meta.list_order then meta.list_order = pandoc.utils.stringify(meta.list_order) end
279 meta.list_layout = meta.list_layout and prep_layout(meta.list_layout)
279 if meta.position then meta.position = pandoc.utils.stringify(meta.position) end 280 if meta.position then meta.position = pandoc.utils.stringify(meta.position) end
280 281
281 if meta.feed then 282 if meta.feed then