[Tool Discussion][Not a Programmer] Idea i'm not sure if has been done for gemtext editing
Andrew Thorp andrew.thorp.dev at gmail.com
Sat Sep 4 14:10:18 BST 2021
Hi Andrew,
I've set up something similar while in the process of making my capsule[1].
I have a front page, /index.gmi, a header and footer, /header.gmi and
/footer.gemi respectively, and a number of posts in /posts/.
Running `make build` will add the header and footer to all gemini
documents (index and posts) as well as add links to all the posts in
the index.
It does some swizzling as well to convert snake_case and kebab-case
file names into Title Case for the "pretty link name".
Lastly, if you create the post with `make post
title=my-new-post-title` it will prepend the date to both the post
title and link.
This is recommended to keep posts ordered as well.
Hope this helps,
Andrew Thorp
[1] (https://git.sr.ht/~athorp96/gemini-thorp.dev)
Archive home | About this archive