From 27bf1933e922f8f083fb4437c1797089b1ab5bbc Mon Sep 17 00:00:00 2001 From: Kumar Damani Date: Mon, 3 Aug 2026 14:12:27 -0400 Subject: manage posts interactively using script --- README.md | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 61 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 21bc829..aa1b5e4 100644 --- a/README.md +++ b/README.md @@ -20,4 +20,64 @@ Gitlab CI will automatically inject a `ci.json` file: "link": "https://gitlab.com/.../job/42" } ``` -used by the `compile` step for the final output. +is used by the `compile` step to show the link to the render job in the footer +of the blog. Just for fun :) + + +Management of blog posts is scripted and will drop you into your `$EDITOR` once it +creates the required files with settings you chose. + +Example `create` run: +``` +❮ ./posts.sh +posts.sh - blog post management +1) create +2) list +3) edit +4) update +5) remove +6) quit +#? 1 +Title: New test post +Slug [new-test-post]: +Long title (blank = same as title) [New test post]: +Description: Testing out a new post +Date [2026-08-03]: + + slug: new-test-post + title: New test post + long title: New test post + description: Testing out a new post + date: 2026-08-03 + +Create this post? [y/N]: y +created post/new-test-post.typ + +<$EDITOR opens post/new-test-post.typ> + +site rebuild: OK +#? 6 +``` + +Example `remove` run: +``` +❯ ./posts.sh +posts.sh - blog post management +1) create +2) list +3) edit +4) update +5) remove +6) quit +#? 5 +1) new-test-post 3) framework-server-p2 5) listing-my-fav-advice 7) nixos-p1 9) self-host +2) a-rack-finally 4) nas-upgrade 6) framework-server 8) programming-as-art 10) programs +#? 1 +about to remove: new-test-post - New test post +Really remove 'new-test-post'? [y/N]: y +also delete image directory post/new-test-post/? [y/N]: y +deleted post/new-test-post/ +removed new-test-post +site rebuild: OK +#? 6 +``` -- cgit v1.2.3