It’s still January, not too late to add having a new blog to my resolutions. My last decently successful blog aentan.com lasted just under three years. I made it to the Hacker News front page a couple of times, reposted an article to Lifehacker and landed various job opportunities. Problem was… maintaining a WordPress site in a shared hosting environment is annoying. Dreamhost was a hundred bucks a year. Didn’t make sense anymore.
So here I am with a new setup. It’s much better and it’s free.
I experimented with Jekyll and it wasn’t flexible enough for me. Then I discovered Middleman. Like Jekyll it’s a Ruby gem but much more flexible. It’s based on Sinatra, like a mini framework. I also get an asset pipeline which means I can serve minified and concatenated assets for better front-end performance. And since it’s a static site, there’s no server-side processing nor database and thus blazing fast.
I’m putting the entire blog and it’s content in a public repository on Github. It makes sense because the content is public anyway. It also opens up the possibly of contributing articles by pull-request. Most important of all, Github is free. Github pages are served by Github’s CDN which wouldn’t have been trivial nor free to set up on my own hosting. Using a decentralized source-control system like Git means I’ll always have my blog and content backed up locally. Even if Github dies tomorrow (pretty unlikely) I can easily redeploy the site somewhere else like Heroku.
Underneath the hood is Bootstrap which makes the site adaptable to various devices and screen sizes. Blogs should be responsive. Reading Wordpress blogs isn’t so nice on mobile devices. Using plugins to make it work was so ugly I didn’t even bother to do it with my old blog. Bootstrap is a better way.
Besides jQuery which is pretty much a standard for interactivity on most sites, I’m using GSAP for animating the masthead. It’s 20× faster than jQuery and even faster than CSS3 animations and transitions. See the speed comparison.
If you’ve noticed the really fast loading of articles from the homepage, I’m using pjax – a portmanteau of pushState + ajax. Makes the site real snappy. I also added a fade transition between pages for elegance.
Though I didn’t continue using Pure I liked its simple content-centric design. Blogs are not marketing websites. The content should take center stage. Typography and whitespace are the chief elements of a good blog design. Medium and ALA embody this functional aesthetic well.
The animated masthead at the top of the homepage represents my consciousness. It’s some of the things that have inspired me and defined me – books, films, music, favorite things, brands, possessions. They’d give you a good idea of the person I am. I created a script called Bokeh and it uses GSAP for hardware-accelerated animation.
Article pages are inspired by the simplicity of Medium and simpler.
Instead of rolling my own commenting system, I rely on Disqus which has just the right features and looks good. Saves me time.
Cover images are pulled directly from Flickr. The images articles are also hosted in my personal Flickr photostream. First, Flickr already provides different sizes of each image which saves me the effort of resizing. Secondly it’s also a poor man’s CDN.
What about you? If you’ve done cool stuff with your blog or site please share by posting a comment.