summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2022-07-31 10:00:03 +0200
committerVolpeon <git@volpeon.ink>2022-07-31 10:00:03 +0200
commit20c5ad5a7a737d721cb39b75852a79f20502da74 (patch)
tree217a5cf991d73b482f39553ca1908f891b0611d7 /scripts
parentUpdate (diff)
downloadvolpeon.ink-20c5ad5a7a737d721cb39b75852a79f20502da74.tar.gz
volpeon.ink-20c5ad5a7a737d721cb39b75852a79f20502da74.tar.bz2
volpeon.ink-20c5ad5a7a737d721cb39b75852a79f20502da74.zip
Simplified "list" list layout code
Diffstat (limited to 'scripts')
-rw-r--r--scripts/metadata.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/metadata.lua b/scripts/metadata.lua
index 142cb8b..a451040 100644
--- a/scripts/metadata.lua
+++ b/scripts/metadata.lua
@@ -297,7 +297,7 @@ function process(global, meta)
297 meta.slug = slug(meta.title) 297 meta.slug = slug(meta.title)
298 meta.schema_type = (meta.schema_type and pandoc.utils.stringify(meta.schema_type)) or "CreativeWork" 298 meta.schema_type = (meta.schema_type and pandoc.utils.stringify(meta.schema_type)) or "CreativeWork"
299 if meta.list_order then meta.list_order = pandoc.utils.stringify(meta.list_order) end 299 if meta.list_order then meta.list_order = pandoc.utils.stringify(meta.list_order) end
300 meta.list_layout = meta.list_layout and prep_layout(meta.list_layout) 300 meta.list_layout = prep_layout(meta.list_layout or "list")
301 if meta.list_limit then meta.list_limit = tonumber(pandoc.utils.stringify(meta.list_limit)) end 301 if meta.list_limit then meta.list_limit = tonumber(pandoc.utils.stringify(meta.list_limit)) end
302 if meta.position then meta.position = tonumber(pandoc.utils.stringify(meta.position)) end 302 if meta.position then meta.position = tonumber(pandoc.utils.stringify(meta.position)) end
303 303