Live data from Hacker News

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

ingau.me

91–100 of 248 posts

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

#91

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.

It's our Hello World of sorts.

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

#92
post #86

Earlier quoted context omitted.

Not “fully-owned” though if you need external services to do the heavy lifting. I think they mean deployed onto a personal vps.

I'd argue it is, because it's portable to any other service. As in you own all the content and methods to generate it.

But he doesn’t. If Cf or Gh go down he has to reconfigure the whole mess. Portability != full-ownership.

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

#93
post #54

Earlier quoted context omitted.

I really dont agree with "fully owned", you arent running on anything you actually own ie self-hosting. It's all on the cloud , which dont get me wrong, is pretty cool and helpful, but hardly yours.

I’m using “fully owned” more in the sense of control rather than infrastructure ownership. The content lives locally, it’s versioned in Git, and everything’s built with open tools. I can move it to another host any time without being locked into a specific platform or format. I agree it’s not “self-hosted”. But compared to a closed CMS or paid platform, it feels meaningfully more in my hands.

I'd go for fully static, which can be served everywhere.

I think blogs should be built like this to make preservation easier. I'd love to have something that make content domain agnostic, more like git that allows cloning and distributing content without forcing people to guess when to pull and archive if they want to keep track of things.

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

#94
I have a sort of similar setup but I haven't started using Obsidian yet, it's on my todo list. I use Eleventy instead of Hugo, with its simple Eleventy-Base-Blog starter template. I use Github action to publish to Github pages instead of using Cloudflare. It's a nascent site/blog, haven't written much, no images yet, so I don't see the need for something more than Github pages right now.

One thing I don't see the author mention that is part of what I plan to do with Obsidian is use Syncthing (which I already use for other things) so I can work on a post when I'm not at my laptop. Probably just to write down ideas/notes and then fully work it out when I get to my laptop.

If the blog author is here, curious if they commit drafts to their repo or not. I personally don't commit drafts. Besides also using 'draft: true` in the front-matter, I gitignore any markdown file where the filename starts with the word "draft". When I'm ready to publish I rename the file.

https://www.11ty.dev/

https://github.com/11ty/eleventy-base-blog

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

#95
post #54

Earlier quoted context omitted.

I’m using “fully owned” more in the sense of control rather than infrastructure ownership. The content lives locally, it’s versioned in Git, and everything’s built with open tools. I can move it to another host any time without being locked into a specific platform or format. I agree it’s not “self-hosted”. But compared to a closed CMS or paid platform, it feels meaningfully more in my hands.

I see, I do agree it is nice to have your data fully owned (like really) and safe on device (or devices), though, sometimes it doesnt feel like enough in the ever changing landscape of the internet.

People get protective of the term self hosted, but all I know is that if I search "how to self host" for any open source project, 90% of the guides at least, probably including the project's own docs, will be about installing on a VPS.

Anyway, the important thing is being in control of your own data. With proper off-site backups and reproducible setups using containers, migrating between VPS providers should usually take just a few hours.

I fully understand the arguments for (and against) managing your own server. But I've not been convinced by any arguments for that server being in your house/office rather than a climate controlled warehouse somewhere.

Well, unless you enjoy setting up and managing the physical hardware yourself of course. That's fully reason enough.

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

#96

The Hugo/GitHub combo has been around/mentioned for some years.. I thought of running a blog once (but then.. no) and this was the choice I would have made. But on the other hand, if you are going to post something online, just go to blogspot and call it a day. Because that's what you did there. A blogspot (but on MS instead of Google) with many-many-many extra steps.

True, Blogspot is simpler. But if it ever shuts down or changes policies, you’re at their mercy - and exporting your content cleanly could be a mess. With this setup, everything is just Markdown files and Git. I can move it anywhere, anytime, no lock-in.

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

#97
I actually set up something close to this myself, but purely selfhosted. I never really wrote any posts though because I wanted to figure out a system for interactivity like some other blogs have done. The one that always sticks out in my mind is the "Let's remove Quaternions from every 3D Engine" post [1], I never really cared for the video aspect of it, but all the little examples to try and give a better 3d perspective of what's going on is the thing I've always wanted a good system for.

[1] https://marctenbosch.com/quaternions/

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

#98

Earlier quoted context omitted.

Not “fully-owned” though if you need external services to do the heavy lifting. I think they mean deployed onto a personal vps.

"Fully-owned" when it's relying on GitHub Pages, Hugo, Obsidian and Cloudflare to function. Two of which are services operated by a corporate entity and one of which is a closed source piece of software. The only thing "owned" here is the fact that the entire blog is simple markdown and the domain name. However, that doesn't mean it's very portable. It's not impossible, but it's a lot more work than I would want to d…

Obsidian is just a very convenient markdown editor. You could rip and replace it with another editor trivially. You just don't get the convenient UI

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

#100

I'm curious about the pros and cons of Cloudflare pages versus GitHub pages. Given that you're using GH as a repo, would it be simpler to also use it to serve pages?

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

Post reply on HN