Just switched this blog to Jekyll
I was browsing around on YouTube a few nights ago and found a hot new thing to try out - Jekyll. Jekyll is a ruby gem that generates your blog from a set of posts, templates and pages. This might seem insane, but when you look into it - there are a lot of things I like about it:
- You write posts from the CLI with markdown
- There is no database to maintain
- Its super fast because its all static files
- There are no security holes
- There are some really modern themes for it
If you wan’t to know more about Jekyll and how such madness could actually be better than a blog system, check out the quick start guide and then the themes page. When you are ready to switch, check out the import process to move all your old posts and such over.
I also went on and automated the build and publish process into a single file you execute. Just setup key auth between the server that has jekyll installed and the web server you want to publish to, then read and modify this script below. Be sure to input your key in the indicated space.
#!/bin/bash site="blog.integrii.net" user="integrii" webroot="blog.integrii.net/" files="html" jekyll build rsync -Pav -e "ssh -i $0" $files/_site $user@$site:$webroot exit -----BEGIN RSA PRIVATE KEY----- (PUT YOUR PRIVATE KEY HERE) -----END RSA PRIVATE KEY-----
Here is the video I saw about Jekyll that got me started.