Use webRoot for relative links
This commit is contained in:
parent
8fcf435b17
commit
a2c8fb9dd4
12 changed files with 23 additions and 25 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue