forked from ruangrupa/lumbung.space
convenient generation
This commit is contained in:
parent
4205d64ff6
commit
3b34e0d0e0
@ -15,6 +15,8 @@
|
||||
|
||||
### Generate `lumbung[dot]space` posts
|
||||
|
||||
Do this manually first:
|
||||
|
||||
```
|
||||
mkdir -p content
|
||||
python3 -m venv .venv && source .venv/bin/activate
|
||||
@ -27,3 +29,5 @@ lumbunglib-cal
|
||||
export OUTPUT_DIR=content/video
|
||||
lumbunglib-vid
|
||||
```
|
||||
|
||||
Afterwards, you can automatically run it with `make gen`.
|
||||
|
6
makefile
6
makefile
@ -3,4 +3,10 @@ DEFAULT: serve
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user