diff --git a/lua/neorg/modules/core/esupports/metagen/module.lua b/lua/neorg/modules/core/esupports/metagen/module.lua index 821d9c155..6f336b06b 100644 --- a/lua/neorg/modules/core/esupports/metagen/module.lua +++ b/lua/neorg/modules/core/esupports/metagen/module.lua @@ -213,7 +213,13 @@ module.public = { return end - local current_date = os.date("%Y-%m-%d") + -- Capture current date from config + local current_date = "" + for _, val in ipairs(module.config.public.template) do + if val[1] == "updated" then + current_date = val[2]() + end + end local query = neorg.utils.ts_parse_query( "norg_meta",