Compare commits

..

2 commits

Author SHA1 Message Date
Fabien Freling b7325dfe07 add horizontal rule 2021-08-31 13:59:09 +02:00
Fabien Freling c6105f8d61 update build scripts 2021-08-31 13:58:44 +02:00
3 changed files with 9 additions and 4 deletions

View file

@ -1,15 +1,16 @@
&root = .
&build_root = build
HTML_TEMPLATE = main.html
!html = | &(root)/templates/footer.html \
|> ^ html %f^ \
|> ^b 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 \
--include-after-body=&(build_root)/templates/footer.html \
%f | sed 's|%%webRoot%%|&(root)|g' > %o \
|> %B.html
@ -20,5 +21,5 @@ HTML_TEMPLATE = main.html
!compress_pdf = |> ps2pdf %f %o |>
JPG_OPT = -quality 80 -strip -interlace Plane
!blur_mini = |> convert %f -resize 400x400 -blur 0x8 $(JPG_OPT) %o |> blur_mini.jpg
!thumbnail = |> convert %f -resize 200x200 $(JPG_OPT) %o |>
!blur_mini = |> ^ %f -> blur mini^ convert %f -resize 400x400 -blur 0x8 $(JPG_OPT) %o |> blur_mini.jpg
!thumbnail = |> ^ %f -> thumbnail^ convert %f -resize 200x200 $(JPG_OPT) %o |>

View file

@ -1,6 +1,9 @@
# vim: set ft=make :
root := `pwd`
setup-ubuntu:
sudo apt install fuse3 pandoc
# Build static website
build:
tup build

View file

@ -5,3 +5,4 @@
<a href="%webRoot%/articles/index.html">Articles</a>
<a href="%webRoot%/about.html">About</a>
</div>
<hr>