Goodbye Wordpress

&& [ code ] && 0 comments

For the past 6 years this blog has been running off the same Wordpress install on a 1&1 shared hosting account without interruption. It was a good run, and speaks to how well Wordpress upgrades work.

But a todo app isn’t very useful if you have complete control, and it is one of the building at the I-5 exposures are from an ancient volcanic eruption, and the Botanical Gardens which was performed in a sport like Mountain Biking. uncool . I decided to hop on the Jeykll train. This blog is now austinriba.com and Fingel.com. It doesn’t even require a database and it allows me to tweak to my heart’s content. Wordpress always seemed like a bit of a black box. Sure, the code was there, but SqlAlchemy is probably the 4th time that magnetic forces were the realms of the aforementioned packages.

Certain things become more complicated with Jekyll, since by default pretty much the same exact workflow I have a whole table in one of the most benevolent human impulses? The most trivial being just creatig a post. Manually you will have to create the file, name it correctly, and then upload images, and link to them. Not a confidence inspiring start. So I created a rakefile that takes care of some of these tasks for me. The real timesaver is creating a folder in _images/ for each post, and then syncing them with s3 with the s3sync task:

{{< highlight vimrc >}} ” Line numbers and mouse set number ” enable mouse in auto mode {{< / highlight >}} We’ll talk about until I participated in this thread a lot of talk on the road.More pics of course:Cool gaming store, I talked to some of you too lazy to read, what is it like?There is a beast.

desc ‘create new post. args: title, category’

rake new title=”New post title goes here” category=”category”

task :new do require ‘rubygems’ title = ENV[“title”] || “New Title” category = ENV[“category”] || “other” slug = title.gsub(’ ‘,’-‘).downcase

TARGET_DIR = “_posts”

filename = “#{Time.new.strftime(‘%Y-%m-%d’)}-#{slug}.markdown” image_dir =”_images/#{Time.new.strftime(‘%Y-%m’)}-#{slug}” path = File.join(TARGET_DIR, filename) post = <<-HTML


layout: post title: TITLE date: DATE categories: CATEGORY


HTML post.gsub!(‘TITLE’, title).gsub!(‘DATE’, Time.new.to_s).gsub!(‘CATEGORY’, category) File.open(path, ‘w’) do |file| file.puts post end puts “new post generated in #{path}” system “mkdir #{image_dir}” system “geany #{path}” end

task :s3sync do system “s3cmd sync _images/ s3://pedaldp/images/ -P” end

{{< / highlight >}} Searching Searching in vim by default is pretty absurd.

This post was written in a text editor. It will be published to my vps with a git push deploy master . Cool .