Lets face it, this site has become stale over the winter months… but largely due to dedicating time to researching, writing, practicing for my two MacIT presentations that happened from Jan 30 - Feb 2nd. Now that I’m finished with MacIT, I need to post PDF links and Vimeo video links that I promised during my session. But as I look at my site I’ve realized that it needs something new. I’m tired of looking at the little squares that were on the top right hand corner. I’m tired of the default blue. I’m tired of Wordpress… but there are two issues:
Then Mid-January Gary Larizza made announcement on his site that he has started to use Octopress. This immediatly peaked my interest as Gary does some fascinating stuff with Puppet Labs and I’ve wanted to step up my chops in being a “Dev SysAdmin” (something that Ed Marczak has been preaching since 2009 (and probably longer… I just heard it first in 2009.)).
So what is Octopress? Well you can read their own website, but my short version is “a static web page generator written in Ruby”. Well crap, I don’t know Ruby. But this is what I needed to push me to learn (or at least understand a little), so be it! Other items to take into consideration is Wordpress security (static pages don’t have cross-site security holes), webserver resource (not that I really cared as I pay for my website hosting), and there is a converter from Wordpress to Octopress on GitHub (so migration should be easy, right)?!
The last item that I liked about using Octopress is that every post is written in Markdown. I don’t know Markdown, so there is another thing that I get to learn and apply at work when taking notes. Markdown has the ability to make note taking look nice, but Octopress has enhanced features so that displaying code looks GREAT!
Octopress has most of the directions you need to fire up an Octopress site on their Setup Documentation page. What I’m going to add are things that I learned trying to make this work.
If you are using another shell other than the default bash on OSX, I hope you know what you are doing.
I have Homebrew installed on my machine for two reasons: easy install of the “fish” shell and nmap. I REALLY like fish, but what I found is getting Ruby to work correctly on OSX and fish is difficult because the default version of Ruby on OSX is 1.8.7 and that version is too old for Octopress. After several days of trying to make this work, I went back to the bash shell and started to use Smyck Color Scheme to help out with a good color scheme (I still have fish installed, just not the default shell anymore) The site I found best suited for getting Octopress installed on OSX is on
panchoat.org (now deleted). It takes you through using Homebrew to install the necessary items (Ruby, rbenv, etc) plus walks you through publishing your site for free on github.com as a GitHub page.
Octopress Plugins are available, are you sure you want to use them?
I have a couple of additional Flickr plugins (FlickrImage and Flickr Badge) and the octolayer installed on my site because when I first re-started this page for work, it was also a traveling photography site that linked to my Flickr account with location maps for remote areas (i.e. Alaska). I found a couple of plugins that worked that allowed easy input values of Flickr picture ID’s which could then be generated as true links by some Ruby code. What I’ve found out is plugins (especially ones that use API keys) will add generation time on your local machine. If you have a hard time waiting a couple of minutes for all of your pages to be generated as Ruby code gets executed to make your life a little easier, you may need to reconsider adding additional plugins. This makes me wonder what will happen to a website that has 1000 posts of just raw text; how long will page generation take?
Themes that are “based” off the original may still be missing items.
I decided to use the Darkstripes theme with the minor modifications. One thing I learned is that sometimes theme remove elements from css, which DESTORY plugins. In my case, the FlickrImage plugin required the $noise-bg variable which is on the default “classic” theme. For some reason the author of “Darkstripes” removed this, thus generated a couple of debuging-hell hours to track down what was wrong. The nice thing, when Octopress goes wrong on generating pages, it usually has a clue why within the error output.
Markdown. Learn it!
If you have NEVER used Markdown, you have a small learning curve but nothing outrageous. I now have three bookmarked pages to make sure I can always find the proper way to use Markdown and Octopress Code snippets in posts.
This was the hardest part to get working. Fortunately the developer was very helpful in getting some errors resolved so I could finally download ALL of my Wordpress content converted to Markdown, zipped, and downloaded to my local machine. Without this, I would have soon gave up on Octopress.
The page generation has me concerned. When I first started cleaning up the export of my old Wordpress articles to Markdown, generation was FAST! It was nothing for me to change a word, generate, preview and see the results immediately. Now with the additional plugins, it takes a couple of minutes. I may have to rethink about my Flickr account integration. Also, I’ve archived my old website on my web hosting provider’s server just in case I need to revert back for some reason.