Live data from Hacker News

Your blog probably doesn’t need a static site generator

zainamro.com

1–10 of 22 posts

Re: Your blog probably doesn’t need a static site generator

#2
Interesting! I followed pretty much the exact same trajectory on my sites. I started a couple of decades ago with handcrafted HTML, then wrote a couple of my own CMSes, then moved to WordPress, and now I'm back to handcrafted HTML.

Every approach has advantages and disadvantages, but for me, for most of my sites, coming back to plain HTML has truly been a joy.

Re: Your blog probably doesn’t need a static site generator

#3
post #2

Interesting! I followed pretty much the exact same trajectory on my sites. I started a couple of decades ago with handcrafted HTML, then wrote a couple of my own CMSes, then moved to WordPress, and now I'm back to handcrafted HTML. Every approach has advantages and disadvantages, but for me, for most of my sites, coming back to plain HTML has truly been a joy.

You could also do plain html but using some good templating language like handlebars or pug, and do on the fly compilation with a few scripts in your preferred language.

Re: Your blog probably doesn’t need a static site generator

#4
post #3
post #2

Interesting! I followed pretty much the exact same trajectory on my sites. I started a couple of decades ago with handcrafted HTML, then wrote a couple of my own CMSes, then moved to WordPress, and now I'm back to handcrafted HTML. Every approach has advantages and disadvantages, but for me, for most of my sites, coming back to plain HTML has truly been a joy.

You could also do plain html but using some good templating language like handlebars or pug, and do on the fly compilation with a few scripts in your preferred language.

Yes indeed -- and I've played with that before. There's nothing wrong with doing that, but for my needs, just going with plain HTML is easiest.

If these sites needs to be more complex, then I'll likely use a static site generator of some sort. I have two sites that are more complex still, and I use WordPress for them.

Re: Your blog probably doesn’t need a static site generator

#5
post #4
post #3

Earlier quoted context omitted.

You could also do plain html but using some good templating language like handlebars or pug, and do on the fly compilation with a few scripts in your preferred language.

Yes indeed -- and I've played with that before. There's nothing wrong with doing that, but for my needs, just going with plain HTML is easiest. If these sites needs to be more complex, then I'll likely use a static site generator of some sort. I have two sites that are more complex still, and I use WordPress for them.

There's also Emmet shortcut extensions to write html faster, it usually is supported for most popular editors.

Re: Your blog probably doesn’t need a static site generator

#7
post #6

If it is a blog though, please make sure to create XML feed (RSS or Atom), I don't consider sites that don't have it as blogs. Again even a simple templating language can do this, you could even run pug in cli mode and produce valid RSS feed.

https://zainamro.com/feed.xml

Re: Your blog probably doesn’t need a static site generator

#10

How does one handle consistent navigation though? If you make a change it sucks having to update that on every page IMHO.

It looks like the person behind https://zainamro.com/ can't be bothered to provide a navigation menu on every page, or even a link back to their site's home page, so they'd probably dismiss your question out of hand.

However, if you really want consistent elements on every page, you could probably do the job with m4 and a makefile. You can party like it's 1998[1].

[1] https://web.archive.org/web/20190813130112/https://www.linux...

Post reply on HN