Now with Jekyll
Recently and around New year I had a little bit of fun converting this site from one static page and WordPress to some templates and Textile files that Jekyll uses to generate a static site. All from scratch, stored in plain text, managed with git, I can now write in Vim and keep a simple layout. Such things can matter only to programmers I guess.
Around the same time, I was reading diveintohtml5.org and the fourth edition of HTML & XHTML Pocket Reference, which covers HTML5. Markup-wise, I very much like what’s coming — new tags such as article, time, nav and their semantics, forms with HTTP verb parameters, special input types. In fact, we can use a good part of it today: <input type="search" autofocus> is supported in latest Chrome, for example. Even if some of this markup may have no real use at the moment because of slow adoption, we should be pushing for what is good. So I decided to make the markup HTML5.
I like nice typography too, so I took this new @font-face thing and Fontin Sans font to make text look more like a printed book.
If you want to convert your WordPress blog posts exported to an XML file to Jekyll-ready Textile files, you can use my wordpressxml2jekyll script. There’s even a part to help you migrate the comments to Disqus if you like.
And if you’re running your own server and want to automatically regenerate the Jekyll site after you push to its git repository, there’s a catch to writing the post-receive hook, as the GIT_DIR environment variable is automatically set to siterepo/.git directory (via). So your post-receive script should look like this.