website/Tuprules.tup

19 lines
593 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
2019-10-29 13:32:03 +01:00
!compress_png = |> zopflipng %f %o |>
!compress_jpg = |> cjpeg -quality 80 -progressive -outfile %o %f |>
!thumbnail = |> convert %f -resize 400x400 -blur 0x8 %o |>