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