update `pandoc` data dir

master
urosm 2024-03-19 02:08:36 +01:00
parent 4db51ca023
commit 424584b0cb
2 changed files with 6 additions and 13 deletions

View File

@ -107,17 +107,6 @@ BACKLINKS, FORELINKS = (function(pages)
return backlinks, forelinks
end)(PAGES)
do
print("[INFO] bavbavhaus.net: updating index page")
local index = "index.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

View File

@ -1,5 +1,9 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="$lang$" xml:lang="$lang$"$if(dir)$ dir="$dir$"$endif$>
<html
xmlns="http://www.w3.org/1999/xhtml"
lang="$if(lang)$$lang$$else$sl$endif$"
xml:lang="$if(lang)$$lang$$else$sl$endif$"
$if(dir)$ dir="$dir$"$endif$>
<head>
<meta charset="utf-8" />
<meta name="generator" content="pandoc" />
@ -18,7 +22,7 @@ $endif$
$if(sitemap)$
<article>
<nav class="sitemap">
<h1><a href="index.html#start">bavbavhaus.net</a></h1>
<h1><a href="/">bavbavhaus.net</a></h1>
<ul>
$for(sitemap)$
<li>$sitemap$</li>