馃懡 m_a_r_k

What do most of you use for your gemlogs?

Do you just write and publish them by hand, do you use some existing tool that structures them and creates a feed, or have you rolled your own tooling? It doesn't seem hard to make your own.

3 weeks ago 路 馃憤 ludv

Actions

馃憢 Join Station

8 Replies

馃懡 m_a_r_k

@ludv thats cool! ive thought about doing something similar. 路 3 weeks ago

馃懡 ludv

@m_a_r_k It recurses the files on each startup and then keeps all metadata about the post in a variable. All pages when requested are sent through the templating library, and they are not cached, so that happens independently on each request. I use the templating engine for more stuff on the website and not just listing available posts and so that is why all pages are templated. 路 3 weeks ago

馃懡 m_a_r_k

@ludv Are you saying your gemlog index page dynamically recurses for all logs at runtime? or you do that upon publishing and serve that page statically? 路 3 weeks ago

馃懡 ludv

Clarification: It's written in golang. For atom feeds I use another library "denisbrodbeck/atomfeed" as generator. The atom feed is generated on startup and then cached. 路 3 weeks ago

馃懡 ludv

I like your question and I also want to know how others do it. But my gemlogs are just statically served files. Then I just recurse through all posts to collect them all. To list them all on the listing page I use the builtin "text/template" as a really simple templating engine. What is cool is that each of the posts has it's own metadata.toml file (like this one gemini://ludver.se/gemlog/My-move-to-Gemini/metadata.toml) I used the ~adnano/go-gemini library but the rest I have built entirely by myself. 路 3 weeks ago

gemini://ludver.se/gemlog/My-move-to-Gemini/metadata.toml

馃懡 jsreed5

I manage my capsule with git. To write a new post, I copy a template file into the log directory on my local repo and write in the template. When I'm finished, a script generates index files that list my logs by year and month. I then commit everything and push it to the remote branch. The remote branch uses git hooks to autoatically generate Atom feeds after receiving a push. I submit the feeds to Antenna by hand; in a ecosystem as small and slow as Gemini, it doesn't feel right to me to query someone else's capsule without human action and intent behind it. 路 3 weeks ago

馃懡 m_a_r_k

@HanzBrix Do you also publish to Antenna by hand, or do you not publish to antenna? 路 3 weeks ago

馃懡 hanzbrix

I just write it by hand, but having a bash script like some do, would make it easier. 馃槀 路 3 weeks ago