About Me


Seni Sangrujee

Founder
Wombat Mobile

Co-founder
Sideshow |
Second Screen News


I've created 33 Android apps and 7 iOS apps, which have been downloaded over 2.3 million times.

I live in Silicon Valley and occasionally blog about life as an app developer.

@dystopia on Twitter



Top Apps

Movie Collection & Inventory
500,000+ downloads

Wine List, Ratings & Cellar
225,000+ downloads

Prayers to Share
165,000+ downloads

Beer List, Ratings & Reviews
175,000+ downloads

My Music Organizer
245,000+ downloads

Book Collection & Catalog
170,000+ downloads

Video Game Tracker
67,000+ downloads

The Bucket List
140,000+ downloads

plus 24 other apps...

Static Blog Generator (What's Old Is New)

by Seni Sangrujee on December 11, 2010
When it came time to put up our blog, I had a tough time deciding what software to use. I've been using WordPress for several sites for a while, but it's been feeling bloated and cumbersome. It feels like it no longer facilitates writing, but has become more of an chore or an obstacle.

There's a trend going on to move toward using Static Blog Engines to generate blogs consisting of pure html pages which I think is great. Comments can now be handled offsite using services like DISQUS or Echo (note to self: I need to add here soon). Searching your blog can be offloaded to Google Site Search.

I've been using various blog engines in the past including Movable Type, Blojsom, WordPress, and even a home-brewed solution, but after all these years it's refreshing to have a pure html blog. Some of those solutions had options to generate html, but they seemed lacking.

Benefits of Static Blog Generation

There are several reason I like this idea, some of which may only by important to me:
1. I love the speed when visiting a pure html blog. Sure you can use WP-Cache, WP Super Cache, and WP-SuperCache-Plus to make a Wordpress blog fly, but for the clean, simple blogs I lean toward, a database seems like overkill.
2. I hate installing patches and keeping up with security updates.
3. I'd love to write, edit, and publish using my own editor and a command line, where I spend most of my day anyway.
4. Fewer worries about overloading the server.
5. Focus on writing not site administration.

This post, Blogging Like a Hacker, sums up this feeling the best.

Static Blog Options

There are a lot of choices out there in many languages. This isn't a tough app to write and minimalism is often better, so many people have made their own and put them out there.

Here are some I looked at:

Unix Shell Scripts
NanoBlogger
http://nanoblogger.sourceforge.net/

Utterson
https://github.com/stef/utterson

Python
Pelican
http://blog.notmyidea.org/pelican-a-simple-static-blog-generator-in-python.html

Ruby
Jekyll
http://jekyllrb.com/

webgen
http://webgen.rubyforge.org/

StaticMatic
http://staticmatic.rubyforge.org/

nanoc
http://nanoc.stoneship.org/

Static
http://static.newqdev.com/

Webby
http://webby.rubyforge.org/

Rog
http://rog.rubyforge.org/

Rassmalog
http://rubyforge.org/projects/rassmalog/

C#
Yet Another Static Blog Generator
http://geekswithblogs.net/prabhpreet/archive/2010/05/01/yet-another-static-blog-generator.aspx

Windows App
WebMerge
http://web-procreate.com/wm-about.htm

Perl
BlazeBlogger
http://blaze.blackened.cz/

Using Wget to Create a Static Blog

Out of the options above, NanoBlogger came the closest to what I was looking for. But there's a bit of a learning curve involved, and I'm not sure others here would want to write blog posts that way.

So my solution was to run an old-school database-backed blog (a home-brewed blog engine I wrote years ago) on our staging server and create a script to use wget -r to recursively fetch the site into static html files and publish them to the production server. Interestingly, I first tried using curl which is included in MacOs, but it doesn't seem to have a recursive option.


Tags: static blog, blogging