convenient generation

This commit is contained in:
cellarspoon 2021-12-15 12:40:25 +01:00
parent 4205d64ff6
commit 3b34e0d0e0
No known key found for this signature in database
GPG Key ID: 03789458B3D0C410
2 changed files with 10 additions and 0 deletions

View File

@ -15,6 +15,8 @@
### Generate `lumbung[dot]space` posts ### Generate `lumbung[dot]space` posts
Do this manually first:
``` ```
mkdir -p content mkdir -p content
python3 -m venv .venv && source .venv/bin/activate python3 -m venv .venv && source .venv/bin/activate
@ -27,3 +29,5 @@ lumbunglib-cal
export OUTPUT_DIR=content/video export OUTPUT_DIR=content/video
lumbunglib-vid lumbunglib-vid
``` ```
Afterwards, you can automatically run it with `make gen`.

View File

@ -3,4 +3,10 @@ DEFAULT: serve
serve: serve:
@hugo serve @hugo serve
gen:
@CALENDAR_URL="https://cloud.lumbung.space/remote.php/dav/public-calendars/WbnHM8YdCkKT6bcT?export"; \
OUTPUT_DIR=content/calendar; \
lumbunglib-cal && \
OUTPUT_DIR=content/video lumbunglib-vid
.PHONY: serve .PHONY: serve