From 5ff9c3b39c3ed108211cc83d44eff4b5099f8d0d Mon Sep 17 00:00:00 2001 From: milovann Date: Fri, 6 Dec 2024 15:59:26 +0100 Subject: [PATCH] up --- scripts/links-to-html.lua | 4 ++++ scripts/web.sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/links-to-html.lua b/scripts/links-to-html.lua index 08c20b6..f1bb548 100644 --- a/scripts/links-to-html.lua +++ b/scripts/links-to-html.lua @@ -2,6 +2,10 @@ -- -- links-to-html.lua function Link(el) +if el.content[1].text == "Éditer" then + return el +else el.target = string.gsub(el.target, "%.md", ".html") return el end +end diff --git a/scripts/web.sh b/scripts/web.sh index c6d385b..750fdae 100755 --- a/scripts/web.sh +++ b/scripts/web.sh @@ -10,7 +10,7 @@ convert() if [[ -f ../pages/$filename.md ]] then echo "making $filename.html" - pandoc -s ../pages/$filename.md -t html > ../dist/$filename.html --lua-filter=links-to-html.lua + pandoc --verbose -s ../pages/$filename.md -t html > ../dist/$filename.html --lua-filter=links-to-html.lua fi }