Live data from Hacker News

Jeffgeerling.com has been migrated to Hugo

jeffgeerling.com

191–200 of 253 posts

Re: Jeffgeerling.com has been migrated to Hugo

#192
post #3

I made the jump to Hugo too (from a managed service: svbtle) a long time ago, but I'll be really honest... I regret it. I decided to use an off-the-shelf theme, but it didn't quite meet the needs and I forked it; as it so happens Hugo breaks userland relatively often and a complex theme like the one I have requires a lot of maintenance. Like.. a lot . Now I can't really justify the time investment of fixing it so I j…

How about specifying a version in the CI config? [0] Also, you know that you can do a binary search for the version that works for you? 0.154.0, 0.77.0, 0.115.0 ... (had to do it once myself) [0]: https://github.com/oslc-op/website/blob/9b63c72dbb28c2d3733c...

Second this. Once I setup GitHub actions with Hugo (there’s one readily available), I rarely build the blog locally anymore. New article drafts become GH pull requests, and once ready they get merged and published. This also works on mobile well enough.

Re: Jeffgeerling.com has been migrated to Hugo

#193
post #190

Slightly off topic, but is there any sensible way yet to federate a statically-geenerated website to Mastodon? Ideally being able to show the comments on the website. I get the staticness doesn't really help here, but I imagine this is a problem that will find a cleaver solution eventually?

You can use Hugo to generate/update an rss feed of your blog. There are tools to post rss feed updates as posts on mastodon.

As far as comments, I’ve seen it done, but as far as I know it’s a bunch of custom code. One example I found: https://andreas.scherbaum.la/post/2024-05-23_client-side-com...

Re: Jeffgeerling.com has been migrated to Hugo

#195
post #172

I've used a lot of static site generators including Hugo and Jekyll. Frankly, I find Go templating and other Jinja style templating an exhausting mental exercise. I don't like it for the same reason that I don't like using Go templating for server side rendering; I would prefer to have an entirely different code base that runs my frontend that only does frontend logic. Components just make that much sense and templat…

Looking for general feedback on my astro project i built with copilot in vs code https://tariqdude.github.io/Github-Pages-Project-v1/visual-s... I ran into all these problems just last summer trying to launch something new so I said fk it went all in on a overkill demo just to see whats possible

There's a lot of bugs, but the design looks neat.

Re: Jeffgeerling.com has been migrated to Hugo

#198

Can someone explain why not just use Wordpress? I don’t fully get the idea of SSGs.

Wordpress is fine for what it is, but it's also an upgrade treadmill. You can kind of bypass that by letting the php process running wordpress have access to write to the code directory so wordpress can upgrade itself, but then your php process has access to write to the code directory.

A blog is mostly a static site that changes occasionally, a static site genetator is a much better fit. Caveat: comments, but personally, I don't want to moderate, and the WordPress site I administerred for work didn't want comments either (but even with them disabled, somehow new comments and trackbacks got into the database). When I finally got approval to turn our blog into a mostly static site, it was joyous, and the server(s) stopped burning cpu like nobody's business to serve the same handful of pages. We used PHP to manage serving translated blog entries, but it's not that much slower than a fully static file when your PHP logic is dead simple and short.

Re: Jeffgeerling.com has been migrated to Hugo

#199

Earlier quoted context omitted.

This is where I've found Astro to really shine. Most people reached for it because of the whole "islands of interactivity" concept, but IMO the ability to easily build a mostly static site with server APIs when needed is a the killer feature. I manage multiple Astro sites and eventually they have all needed at least a few small server endpoints. Doing that with Astro is very simple and it can be done without making t…

Ive reposted my personal demo Astro project with zero eyes Is anyone willing to give feedback on it whatsoever? https://tariqdude.github.io/Github-Pages-Project-v1/visual-s...

Just a small note - I see a lot of warnings about "Long Tasks" in the dev console log (Chromium) - likely related to the animation which is jittering on my Mac M1.

Re: Jeffgeerling.com has been migrated to Hugo

#200
post #26

For long term stuff like a blog, nothing seems to beat static sites generated before deployment, instead of automated tools like Hugo. I tried Hugo years ago and some tiny config or update would suddenly expose all site variables to visitors, which was an incredible security risk. Wordpress and Drupal are a war zone of attacks - judging by the server logs of any of web site. These days you can custom write or design…

Isn't static site generation exactly what hugo does?

Sure but you have to learn to use it. I'm saying that just have AI generate a SvelteKit project instead and you'll get better mileage out of it.
Post reply on HN