Use webRoot for relative links

This commit is contained in:
Fabien Freling 2019-06-14 13:53:29 +02:00
parent 8fcf435b17
commit a2c8fb9dd4
12 changed files with 23 additions and 25 deletions

View file

@ -1,9 +1,12 @@
&root = .
!pandoc = | &(root)/templates/footer.html |> pandoc --from markdown --to html \
!pandoc = | &(root)/templates/footer.html \
|> ^ pandoc %f^ \
pandoc --from markdown --to html \
--template=&(root)/templates/pandoc.html \
--variable=webRoot:&(root) \
--css &(root)/css/style.css \
--include-in-header=&(root)/templates/header.html \
--include-before-body=&(root)/templates/nav.html \
--include-after-body=&(root)/templates/footer.html \
%f --output=%o \
%f | sed 's|%%webRoot%%|&(root)|g' > %o \
|> %B.html