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 }