Live data from Hacker News

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

ingau.me

171–180 of 248 posts

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

#171

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.

This reminds me of people who will make an entire YouTube series on crafting the perfect Notion architecture. Only to not actually use it.

I am in a worse group. Changed my blogging platform, wrote the obligatory post detailing why I changed platform and couldn't even get that obligatory post out. I hang my head

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

#172

Earlier quoted context omitted.

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

I'm in the "old-ass blogger.com site" category, with posts going back to '05.

Literally just posted my newly hogoized site that dates back to 2003 THIS MORNING. :)

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

#174
Cool setup, but the choice of Obsidian is kind of weird in this context (in an interesting way, see next paragraph). Instead of opening a subfolder of the Hugo project in Obsidian, one could just open the entire thing in VSCode or a similar IDE, enjoy a good markdown editing experience, AND use git integration and the integrated terminal (and possibly set up automated tasks) to run your local testing and deployment workflows.

Note that Obsidian's markdown editing experience is _different_ from (but not necessarily better or worse than) what you'd get in a typical IDE. So while the choice seems weird to me, it absolutely makes sense if the author prefers the feature set that Obsidian offers. Being supported by so many different editors is one of markdown's strengths, after all, and this kind of editor-portability fits right in with the other parts of "Fully Owned" from the blog post.

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

#175

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.

A bit unfair to the OP, given that he actually does write posts on his blog.

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

#176

I have a very similar setup, but I went a step further by writing a custom Obsidian plugin that handles compressing assets / transforming frontmatter / pushing the bundle up to my Github blog repo. Github has an automated action that then uses Pelican (a python based static site generator) to convert to HTML and deploys it to my VPS where it is served by Caddy. Makes it very easy to have a WYSIWYG interface, the blog…

Upvote for Pelican. I never understood why so many people don't consider it and jump straight to Jekyll/Hugo.

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

#177

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/

This is hilarious, and so true

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

#178

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…

Because then you have 200 blog posts and suddenly you realize "oh I wanna add an author section to all my blog posts". That is 200 files to edit. Could you write a script to do the edit? Sure, but then you pretty much build a static site generator.

`sed -i` is one command: https://www.gnu.org/software/sed/manual/sed.html#index-_002d...

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

#179

Earlier quoted context omitted.

https://docs.github.com/en/pages/getting-started-with-github... > GitHub Pages is not intended for or allowed to be used as a free web-hosting service to run your online business, e-commerce site, or any other website that is primarily directed at either facilitating commercial transactions or providing commercial software as a service (SaaS). Not finding a similar mention for Cloudflare... commercial sites are fine…

So a personal website with a personal blog is ok then. Curious though how it handles a surge in requests, like from being on the front-page of HN. But many open source projects host their doc pages with Github pages and some of those get a lot of traffic so I'm sure that it's not an issue

The "front page of HN" has not scaled like the rest of the computing hardware has scaled. The smallest VM you can get serving static content will yawn at the full power of an HN surge. Unless you have a very 200x-era bandwidth limit, or you're trying to be on the front page of HN with a 250MB web page (which does happen), it's not anything to be concerned about anymore.

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

#180
I set up a friend’s prolific blog with a very similar approach many years ago using pelican and pushing to a git server vps where a tiny custom python wevserver serves whatever is in git.

Only friend has struggled to get pelican and git etc set up on a new laptop. And tbh I am lost - and horrified - at the latest windows. Not keen on being tech support and working out why python command hangs etc.

And my custom vps setup doesn’t do tls. And I don’t want to try.

So I’m wondering if there are any alternatives? Is there a web frontend for blogging straight to ghpages, for example?

Post reply on HN