2022-05-31 18:17:47 +00:00
|
|
|
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
|
2023-01-21 14:06:29 +00:00
|
|
|
cp -r well-known _site/.well-known
|
2022-05-31 18:17:47 +00:00
|
|
|
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 \
|
2022-06-01 10:33:24 +00:00
|
|
|
--include robots.txt
|
2023-01-21 14:06:29 +00:00
|
|
|
cp -r well-known _site/.well-known
|
2022-05-31 18:17:47 +00:00
|
|
|
tar -czf blog.tar.gz _site
|