Self-hosted Jekyll Sites
I recently made the move from a PHP-based markdown blog to Jekyll, a static-site generator.
Jekyll has a couple of advantages over everything else I’ve tried:
- 100% Static HTML output (No PHP or Ruby required on your server)
- Design, code and preview your site locally
- Markdown posts!
- Lots and lots of free themes available
I’m going to quickly go over how to get started on OSX. Keep in mind only the static HTML is generated using Jekyll. You can then copy the static HTML output to pretty much any webserver you want.
gem install jekyll
- Grab a theme you like. Make sure to hit up the README as some themes require more ruby dependencies. Usually solved with running
bundle installfrom the site’s root directory but YMMV.
- Note: Themes are actually fully-fledged Jekyll sites ready to go. So the theme you download will end up the root directory for your project.
- Posts go in the _posts directory. Drafts in _drafts. The file name format is
- When done, test your site locally with
- And a one-liner to deploy your site:
jekyll build --destination ~/escism.net && scp -r ~/escism.net/ escism.net:~/www/
Too easy, hey?