samf home page

A Blog?

I’ve started a few blogs over the years, as I suspect many people have. They inevitably fizzle out. To quote Lo Pan, “Yet we all keep trying, like fools!”

This time I expect to have some astronomy-related content to keep me going. And some of my other hobbies might show up, like vanlife or coding.

How It’s Done

I’ve been trying to do some writing, in general. My theory is that most things will be private. Day One is a good app for this. It syncs across your Apple devices, where I’m pretty well embedded these days. It’s private. I think there’s no official way to automatically share your entries. The only supported way to share is to export and massage what’s exported into some other form.

To that end, I’ve written a CLI called daypub to take an export from Day One and expand it out into a form that’s ready for a blog. One method is just called “markdown”, and another (currently the only other) method is called “hugo”. The hugo method has extensions for Hugo. Currently, the extensions mostly involve how images are handled in the index.md output file. I’ll write more about how I’m using hugo in a future blog entry.

My hugo-based blog runs on my largest and longest-running side-project. I plan to blog about this in the future, but for now, let’s just say that I am running a small hosting platform on AWS, and samf.work is hosted there.