Compare commits
2 commits
d31ef3882d
...
b7325dfe07
Author | SHA1 | Date | |
---|---|---|---|
b7325dfe07 | |||
c6105f8d61 |
|
@ -1,15 +1,16 @@
|
||||||
&root = .
|
&root = .
|
||||||
|
&build_root = build
|
||||||
|
|
||||||
HTML_TEMPLATE = main.html
|
HTML_TEMPLATE = main.html
|
||||||
|
|
||||||
!html = | &(root)/templates/footer.html \
|
!html = | &(root)/templates/footer.html \
|
||||||
|> ^ html %f^ \
|
|> ^b html %f^ \
|
||||||
pandoc --from markdown --to html \
|
pandoc --from markdown --to html \
|
||||||
--template=&(root)/templates/$(HTML_TEMPLATE) \
|
--template=&(root)/templates/$(HTML_TEMPLATE) \
|
||||||
--css &(root)/css/style.css \
|
--css &(root)/css/style.css \
|
||||||
--include-in-header=&(root)/templates/header.html \
|
--include-in-header=&(root)/templates/header.html \
|
||||||
--include-before-body=&(root)/templates/nav.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 \
|
%f | sed 's|%%webRoot%%|&(root)|g' > %o \
|
||||||
|> %B.html
|
|> %B.html
|
||||||
|
|
||||||
|
@ -20,5 +21,5 @@ HTML_TEMPLATE = main.html
|
||||||
!compress_pdf = |> ps2pdf %f %o |>
|
!compress_pdf = |> ps2pdf %f %o |>
|
||||||
|
|
||||||
JPG_OPT = -quality 80 -strip -interlace Plane
|
JPG_OPT = -quality 80 -strip -interlace Plane
|
||||||
!blur_mini = |> convert %f -resize 400x400 -blur 0x8 $(JPG_OPT) %o |> blur_mini.jpg
|
!blur_mini = |> ^ %f -> blur mini^ convert %f -resize 400x400 -blur 0x8 $(JPG_OPT) %o |> blur_mini.jpg
|
||||||
!thumbnail = |> convert %f -resize 200x200 $(JPG_OPT) %o |>
|
!thumbnail = |> ^ %f -> thumbnail^ convert %f -resize 200x200 $(JPG_OPT) %o |>
|
||||||
|
|
3
justfile
3
justfile
|
@ -1,6 +1,9 @@
|
||||||
# vim: set ft=make :
|
# vim: set ft=make :
|
||||||
root := `pwd`
|
root := `pwd`
|
||||||
|
|
||||||
|
setup-ubuntu:
|
||||||
|
sudo apt install fuse3 pandoc
|
||||||
|
|
||||||
# Build static website
|
# Build static website
|
||||||
build:
|
build:
|
||||||
tup build
|
tup build
|
||||||
|
|
|
@ -5,3 +5,4 @@
|
||||||
<a href="%webRoot%/articles/index.html">Articles</a>
|
<a href="%webRoot%/articles/index.html">Articles</a>
|
||||||
<a href="%webRoot%/about.html">About</a>
|
<a href="%webRoot%/about.html">About</a>
|
||||||
</div>
|
</div>
|
||||||
|
<hr>
|
||||||
|
|
Loading…
Reference in a new issue