Added correct permalink and made sure back/next links were working properly.

This commit is contained in:
zachgersh 2013-05-28 22:34:53 -07:00
parent 75ced04c8d
commit db1eb14cb2
3 changed files with 4 additions and 1 deletions

View File

@ -161,7 +161,8 @@ namespace :site do
end end
# Create a hash for the front matter that is to be included # Create a hash for the front matter that is to be included
front_matter = {"layout" => "docs", "title" => "History", front_matter = {"layout" => "docs", "title" => "History",
"permalink" => "/docs/history/"} "permalink" => "/docs/history/",
"prev_section" => "upgrading"}
# Finally we need to copy the file to the /history directory # Finally we need to copy the file to the /history directory
Dir.chdir('site/docs/') do Dir.chdir('site/docs/') do
File.open("history.md", "w") do |file| File.open("history.md", "w") do |file|

View File

@ -2,6 +2,7 @@
layout: docs layout: docs
title: History title: History
permalink: /docs/history/ permalink: /docs/history/
prev_section: upgrading
--- ---
## HEAD ## HEAD

View File

@ -2,6 +2,7 @@
layout: docs layout: docs
title: Upgrading title: Upgrading
prev_section: resources prev_section: resources
next_section: history
permalink: /docs/upgrading/ permalink: /docs/upgrading/
--- ---