feat: Make more use of the shared assets

This commit is contained in:
2022-05-31 20:17:47 +02:00
parent 1e531f07b6
commit 5cf8725e01
6 changed files with 61 additions and 86 deletions

35
Makefile Normal file
View File

@@ -0,0 +1,35 @@
BUILD_DATE := $(shell date '+%H:%M %d.%m.%Y')
serve:
python ../shared-assets/makesite.py \
-p params.json \
-v page_assets=/assets \
-v build_time="${BUILD_DATE}" \
--assets ../shared-assets/assets \
--assets ./assets \
--copy-assets \
--ignore ../shared-assets/assets/img \
--include robots.txt
# A workaround to making the fonts load without the CDN
mv _site/assets/fonts _site/fonts
cd _site/ && python -m http.server 8080
build:
python ../shared-assets/makesite.py \
-p params.json \
-v page_assets=https://cdn.polynom.me \
-v build_time="${BUILD_DATE}" \
--assets ./assets \
--copy-assets \
--ignore assets/img/raw \
--include robots.txt \
--blog \
--rss
python ../shared-assets/pgp-sign.py $(wildcard _site/*.html)
gpg \
--armor \
--output _site/assets/files/verify.sh.sig \
--local-user papatutuwawa@polynom.me \
--detach-sign \
assets/files/verify.sh
tar -czf blog.tar.gz _site