Skip to content

Commit

Permalink
fix(metagen): update generation to use user config for updated tag (#…
Browse files Browse the repository at this point in the history
…882)

closes #865
  • Loading branch information
katawful committed May 18, 2023
1 parent 5a9696e commit 6ed0f3a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lua/neorg/modules/core/esupports/metagen/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 6ed0f3a

Please sign in to comment.