๐Ÿ’พ Archived View for agnos.is โ€บ posts โ€บ hello-just.gmi captured on 2024-05-26 at 14:35:13. Gemini links have been rewritten to link to archived content

View Raw

More Information

โฌ…๏ธ Previous capture (2024-05-10)

-=-=-=-=-=-=-

Hello Just

Return to Posts

Published: 2024-02-12T14:23:06+01:00

The capsule build system now uses the Just tool to make it easier to use gempost.

Gempost (GitHub)

Just (GitHub)

The entire current content of the file is below. I will expand this over time to enable templating of static pages, and other things.

@ensure:
	which gempost >/dev/null 2>&1  || cargo install gempost
	which tera >/dev/null 2>&1 || cargo install tera-cli

build: ensure
	gempost build -c ./capsule-main.yaml
	gempost build -c ./astroponic-garden.yaml

post TITLE: ensure
	gempost new -c capsule-main.yaml -t "{{TITLE}}" "{{ lowercase(replace(TITLE, ' ', '-')) }}"

plant TITLE: ensure
	gempost new -c astroponic-garden.yaml -t "{{TITLE}}" "{{ lowercase(replace(TITLE, ' ', '-')) }}"

deploy MESSAGE: build
	git add .
	git commit -m "{{ MESSAGE }}"

Filed under: capsule

License: CC-BY-SA-4.0.

โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—

โคด๏ธ [/posts]

๐Ÿ  Home