summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2022-08-04 21:49:33 +0200
committerVolpeon <git@volpeon.ink>2022-08-04 21:49:33 +0200
commit68b1733aea1eedcb48c8cca3227f5d71c46ca2fa (patch)
treef65ac321dc1e6b8394babcff2665a307929fa268
parentDon't generate randomized pages list (diff)
downloadvolpeon.ink-68b1733aea1eedcb48c8cca3227f5d71c46ca2fa.tar.gz
volpeon.ink-68b1733aea1eedcb48c8cca3227f5d71c46ca2fa.tar.bz2
volpeon.ink-68b1733aea1eedcb48c8cca3227f5d71c46ca2fa.zip
Don't make parent accessible in templates
-rw-r--r--scripts/page.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/page.lua b/scripts/page.lua
index 1ce060e..e18f392 100644
--- a/scripts/page.lua
+++ b/scripts/page.lua
@@ -230,6 +230,8 @@ function Meta(meta)
230 global.menus.main = prep_menu(meta.namespace.full, global.menus.main) 230 global.menus.main = prep_menu(meta.namespace.full, global.menus.main)
231 end 231 end
232 232
233 meta.parent = nil
234
233 for key, value in pairs(global) do 235 for key, value in pairs(global) do
234 meta[key] = value 236 meta[key] = value
235 end 237 end