Live data from Hacker News

How I blog with Obsidian, Hugo, GitHub, and Cloudflare

ingau.me

231–240 of 248 posts

Re: How I blog with Obsidian, Hugo, GitHub, and Cloudflare

#231

VSCode has been good enough for markdown blogging for me. Hugo compiles pages on save so its quick to iterate. The markdown preview plugin brings same experience to misc markdown editing. No new editors to learn and one gets instant access to copilot etc.

Why would you need copilot for blogging? Isn't the whole appeal of a blog that it's something you , a human created?

I found it very useful for proofreading. It's easier than copying/pasting the content into ChatGPT or similar, as it's right in the editor. I disabled the autocomplete though, as I found it breaks my flow of thoughts

(Wrote about this: https://stanislas.blog/2025/02/writing-workflow-llm/)

Re: How I blog with Obsidian, Hugo, GitHub, and Cloudflare

#232

Great stuff, looking forward to your next blog post in 1 year: “How I rebuilt my blog on…” A fun hobby of mine is Googling “how I built this blog with [next.js/Gatsby/etc etc]” and going to page 10 of the Google results. It’s just hundreds of developer blogs with no blog posts other than the ones announcing how the blog was built.

I’ve noticed this a lot, too, and made this drawing as a joke: https://rakhim.org/honestly-undefined/19/

*scnr:

ooof.. this chart is making my day, not because of it's content, but it's presentation. Apparently it only works if you have very different scales for x and y axis. As you have the same metrics on both of them (number of posts), it only worked if like x axis is from 1 to 10 while y axis is either log or from 1 to 100 or so. Or you choose a differnt metric for the x axis, like "share of posts about blog setups".

Re: How I blog with Obsidian, Hugo, GitHub, and Cloudflare

#233

I profoundly do not understand why one needs Hugo or Jekyll or whatever other generator. Why not write HTML in the first place? It's so absurdly easy and it makes you not depend on external infrastructure at all. I tried some generators but it was so much more complicated than writing a style sheet and some pages. Maybe for some more complex use-case, okay, I get it, but the author's blog is so minimal and simple. ed…

The input is markdown, the output is HTML. How do you bridge that gap without generating HTML?

Re: How I blog with Obsidian, Hugo, GitHub, and Cloudflare

#234
post #219

Earlier quoted context omitted.

Do you even need https for static content?

Yes. (For "social reasons": If you have any feedback channel on your static site, people won't stop breaking your balls until you add https.)

Easy problem to solve.

Re: How I blog with Obsidian, Hugo, GitHub, and Cloudflare

#235
post #232

Earlier quoted context omitted.

I’ve noticed this a lot, too, and made this drawing as a joke: https://rakhim.org/honestly-undefined/19/

*scnr: ooof.. this chart is making my day, not because of it's content, but it's presentation. Apparently it only works if you have very different scales for x and y axis. As you have the same metrics on both of them (number of posts), it only worked if like x axis is from 1 to 10 while y axis is either log or from 1 to 100 or so. Or you choose a differnt metric for the x axis, like "share of posts about blog setups"…

My thoughts exactly! Originally I wanted to also add a 2nd vertical axis on the right to signify "share of posts about blog setups".

Re: How I blog with Obsidian, Hugo, GitHub, and Cloudflare

#236

Shout out to Quartz, which produces a site similar to Obsidian Publish: https://quartz.jzhao.xyz/ (I would use Obsidian Publish, but it rendered far too slowly on some pages. I do use their excellent sync service though.)

have you submitted your site to Obsidian Garden Gallery yet?

https://obsidian-gallery.craftengineer.com/

Re: How I blog with Obsidian, Hugo, GitHub, and Cloudflare

#238

Earlier quoted context omitted.

All of this applies to using your browser and your browser automatically executes code from random sources . If this is your threat model then how are you even posting on HN? Shut down that insecure browser quickly. It is tens of thousands of times more likely to expose your personal data etc etc than nginx. Running nginx isn't madness. Thinking nginx is more of a risk, or even comparable to, your normal daily browse…

You are not educating me in any way. And obviously I don't browse with JavaScript enabled. We could go back and forth all day about the likelihood of a v8 sandbox escape vs RCE in a big C program. But another risk to consider is a non-obvious misconfiguration. A default server block with a wildcard server name. A stray symlink inside the docroot. An unexpected mount point. A temporary config change that you forget to…

I guess you're right. Humans make mistakes so we should just not have any control where we might make a mistake at all and host all our personal data at large corporations who definitely have our privacy as the #1 priority and never leak. And before you say, "I don't do that, false dichotomy." we're not talking about us, here, it seems. Since we both are obviously huge nerds capable of securing things (I have js disabled by default too). We're talking about the type of person that runs javascript.

Re: How I blog with Obsidian, Hugo, GitHub, and Cloudflare

#239

Earlier quoted context omitted.

You are not educating me in any way. And obviously I don't browse with JavaScript enabled. We could go back and forth all day about the likelihood of a v8 sandbox escape vs RCE in a big C program. But another risk to consider is a non-obvious misconfiguration. A default server block with a wildcard server name. A stray symlink inside the docroot. An unexpected mount point. A temporary config change that you forget to…

I guess you're right. Humans make mistakes so we should just not have any control where we might make a mistake at all and host all our personal data at large corporations who definitely have our privacy as the #1 priority and never leak. And before you say, "I don't do that, false dichotomy." we're not talking about us, here, it seems. Since we both are obviously huge nerds capable of securing things (I have js disa…

I thought we were talking about blog posts.

Host your personal data on your local machine. Encrypt it and sync to another physical location for backup.

But serve your blog from somewhere else. If you want to self-host it at home, buy a cheap NUC (or RPi) and hang it off the guest network on your WiFi router. Or, minimally, a VM or a zone/jail/container. I don't like the idea of a compromised host sitting on my home LAN, but it's better than a compromised daemon running on my desktop OS.

Or don't self-host at home, but mirror the data up to GitHub Pages or Cloudflare Pages for free. Or pay for a cheap VPS (people elsewhere in these comments mentioned a $20/yr host). Or OVH, Hetzner, even AWS low-spec instances...all reasonable options.

If you're no longer talking about blog posts, but you want worldwide access to arbitrary personal data on your home desktop, that's a job for a VPN -- preferably one that still does not terminate on your desktop itself, and of course not one that gives a sketchy third party direct access to the desktop.

I completely agree that pushing your personal files and such up to Dropbox (e.g., etc) would also be madness!

You say we're not talking about us, but I'm responding to your specific mention that you serve blog posts to the public Internet from nginx running on your desktop. We may not be able to help to average consumer, but I'm talking about you! :)

Re: How I blog with Obsidian, Hugo, GitHub, and Cloudflare

#240
In the past I’ve been hesitant about Obsidian, but I tried this with my hugo site (hosted on AWS Amplify) and I’m liking the workflow. I like the fact that it creates a vault for my blog directory and the front matter is shown as properties that are easy to edit. Yes I can use VSCode for that, but I like the polished markdown editor. Or that I don’t have to copy/paste content. It’s not revolutionary but a good improvement to my workflow.
Post reply on HN