From 68b1733aea1eedcb48c8cca3227f5d71c46ca2fa Mon Sep 17 00:00:00 2001 From: Volpeon Date: Thu, 4 Aug 2022 21:49:33 +0200 Subject: Don't make parent accessible in templates --- scripts/page.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts') 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) global.menus.main = prep_menu(meta.namespace.full, global.menus.main) end + meta.parent = nil + for key, value in pairs(global) do meta[key] = value end -- cgit v1.2.3-70-g09d2