update `pandoc` data dir

master
urosm 2024-03-26 17:02:53 +01:00
parent 0b05224980
commit 4d63994354
1 changed files with 11 additions and 0 deletions

View File

@ -107,6 +107,17 @@ BACKLINKS, FORELINKS = (function(pages)
return backlinks, forelinks
end)(PAGES)
do
print("[INFO] bavbavhaus.net: updating index page")
local index = "README.md"
FORELINKS[index] = pandoc.MetaList({})
for i,page in ipairs(PAGES) do
if PAGES[i]["meta"]["input_file"] == index then goto continue end
FORELINKS[index]:insert(page["meta"]["input_file"])
::continue::
end
end
do
print("[INFO] bavbavhaus.net: updating link targets")
local split_extension = pandoc.path.split_extension