I recently switched my blog from Blogger to Octopress (hosted on Github) and it’s fantastic!!! Here are the search engine optimizations I performed on the blog. Most of them are from www.yatishmehta.in, www.learnaholic.me and nothoughtcontrol.com.
I’ve also incorporated these SEO fixes into the classic octopress theme. It is available at octopress-classic-no-blog.
Keywords & Description for individual posts
1 2 3 4 5 6 7 8 9 10
Octopress, by default, when generating a new post using
description metadata for individual posts. But,
if they are manually added to a post, the generated html will include them.
You could include both manually for each newly created post or modify the
Rakefile in the root of the Octopress installation to include these whenever a
new post is created. Find the
new_post task and modify it as follows:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
Similar modifications can be performed for
new_page task as well.
Keywords & Description for the main website
Octopress utilizes the
description of the latest blog post for the
main website. In most cases, this doesn’t bode well for the website in terms of
SEO. It is possible to provide a separate set of keywords and description for
the main website. Modify
_config.yml in the root of the Octopress
installation to include the additional metadata.
description option would
already be present there.
1 2 3 4 5 6 7 8
source/_includes/head.html, the file responsible for generating the
html header for the website, to use this metadata when available. The
modifications go after the
author meta tag.
1 2 3 4 5
Remove Redundant /blog Prefix From Octopress URLs
Octopress, by default, generates static websites with a
/blog prefix attached to
categories, archives and post URLs. This is particularly annoying when the blog
is hosted at
blog.yourdomain.tld and have funny URLs like
blog.yourdomain.tld/blog/archives. I’ve written about this before.
Single domain for the website
To prevent google from de-valuing content for having two different URLs, one
www.yoursite.tld and another through
yoursite.tld, it is better to
redirect one to the other with a HTTP 301 status code.
xit0.org through a DNS CNAME record. Refer
your domain registar’s help pages on setting this up. If you run the
blog/website off Heroku,
rack-rewrite can be used to achieve this as mentioned
These 4 SEO fixes are beneficial to an Octopress website:
keywordsmetadata for individual posts/pages
keywordsfor the main website
- Remove redundant
/blogprefix from Octopress URLs
- Single domain for the website