A LENGTHY REBOOT

By Richard Hsu
Latest | Archives | Contact | Others

Octopress

I have decided to migrate the blog from Wordpress to Octopress (hosted on GitHub) . To get Octopress working, I followed the instructions on the Octopress website and it worked. The default Classic theme is nice but two customizations were made: Favicon & Date format (remove Time part).

Favicon

The default Favicon is nice but I prefer my own Gif image designed by Robert.

1) Replace favicon file
I deleted favicon.png from octopress/.themes/classic/source and octopress/source and replaced it with favicon.gif

2) Update head.html in source and theme directories

Files:

source/_includes/head.html
octopress/.themes/classic/source

Original:
<link href="{{ root_url }}/favicon.png" rel="icon">

New:
<link href="{{ root_url }}/favicon.gif" rel="icon">

Date format (remove Time part)

By default, the blog posts will show Date and Time. I removed the Time part.

Files:

octopress/.themes/classic/source/_includes/post/date.html
octopress/source/_includes/post/date.html

Original:

{% if page.date %}{% capture time %}{{ page.date_time_html
{% if post.date %}{% capture time %}{{ post.date_time_html

New:

{% if page.date %}{% capture time %}{{ page.date_text
{% if post.date %}{% capture time %}{{ post.date_text

For other date formats refer to https://github.com/octopress/date-format

Why migrate?

  1. No Ads (don't want to pay $30/year to go ad free in Wordpress)
  2. Customizations (don't want to pay $30/year for ability to change font etc.)
  3. The simplicity and benefits of static web pages
  4. Octopress is a "A blogging framework for hackers." :)