website/Tuprules.tup

15 lines
427 B
Plaintext
Raw Normal View History

2019-06-10 21:51:04 +02:00
&root = .
2019-06-14 13:53:29 +02:00
2019-10-29 12:53:51 +01:00
HTML_TEMPLATE = main.html
2019-06-19 13:58:22 +02:00
2019-10-29 12:53:51 +01:00
!html = | &(root)/templates/footer.html \
|> ^ html %f^ \
pandoc --from markdown --to html \
--template=&(root)/templates/$(HTML_TEMPLATE) \
2019-06-19 13:58:22 +02:00
--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 | sed 's|%%webRoot%%|&(root)|g' > %o \
|> %B.html