Octopress
Oct 10, 2014
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?
- No Ads (don't want to pay $30/year to go ad free in Wordpress)
- Customizations (don't want to pay $30/year for ability to change font etc.)
- The simplicity and benefits of static web pages
- Octopress is a "A blogging framework for hackers." :)