Hacker News new | ask | show | jobs
by mrswag 3459 days ago
I generate static webpages from markdown in a < 100 lines bash script. It's just a for loop using sed, pygments and markdown, hosted on github.

It has a local webserver, spell check, optional image compression, and minimal dependencies.

I don't get the need of Jekyll or Hugo. They're bloated and it's a pain to customize so called "themes". I'm OK with 'boring' HTML and CSS.

3 comments

It's great you built your own tool and workflow that suits you, but there's no need to declare things 'bloated', just because they include things you don't want to use. That's your opinion. Its defaults suit me pretty well, and it's really well documented.
Bad wording on my side, sorry. My grief is mostly against some prominent themes that weight 5 MB a page, and feature jQuery to animate the menu.
Cool, I hear you but Jekyll actually comes with a very minimal theme (when you 'jekyll new my-site'). Heavy 3rd party themes aren't really the fault of Jekyll.
What do you use for the local webserver, spell check and image image compression?
`python -m SimpleHTTPServer` for the local server (or if you prefer the python3 variant, `python3 -m http.server`), aspell for the spell check, and OptiPNG for PNG compression.

I didn't found something (yet) for JPEG.

> I didn't found something (yet) for JPEG.

jpegoptim --strip-all

Thanks, exactly what I was looking for!
+1 for Hugo.