mirror of
https://github.com/alex-s168/website.git
synced 2025-09-10 09:05:08 +02:00
some improvements
This commit is contained in:
5
build.sh
5
build.sh
@@ -3,8 +3,11 @@ set -e
|
||||
rm -rf build
|
||||
mkdir build
|
||||
|
||||
git_rev=$(git rev-parse --short=12 HEAD)
|
||||
git_commit_date=$(date -d @$(git log -1 --format=%at) +'%d. %B %Y %H:%M')
|
||||
|
||||
compile () {
|
||||
typst compile --root . --features html -j 4 $@
|
||||
typst compile --root . --features html --input git_rev=$git_rev --input git_commit_date="$git_commit_date" -j 6 $@
|
||||
}
|
||||
|
||||
page () {
|
||||
|
Reference in New Issue
Block a user