website/Tuprules.tup
2019-10-29 14:11:03 +01:00

19 lines
593 B
Plaintext

&root = .
HTML_TEMPLATE = main.html
!html = | &(root)/templates/footer.html \
|> ^ html %f^ \
pandoc --from markdown --to html \
--template=&(root)/templates/$(HTML_TEMPLATE) \
--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
!compress_png = |> zopflipng %f %o |>
!compress_jpg = |> cjpeg -quality 80 -progressive -outfile %o %f |>
!thumbnail = |> convert %f -resize 400x400 -blur 0x8 %o |>