Octopress Blog From a Subdirectory
I’m using Jekyll and Octopress 3.0 to manage my entire site here, but I want the ‘blog’ page to be located at [chrisanthropic.com/blog] so here’s what I did.
- Rename the default
index.html
to ‘blog.html’ (keeping it in root) - Edit
_config.yml
‘permalink’ topermalink: /blog/:year/:title
- feel free to edit the permalink however you want, so long as it starts with /blog
- Create a new
index.html
in root - add /blog/ link to navigation by adding the proper yaml front matter to ‘blog.html’
---
layout: page
title: Blog
permalink: /blog/
---
- build/deploy