From f35d287c66e8f052ed678efcfd18ad353891e5ab Mon Sep 17 00:00:00 2001 From: Tom Preston-Werner Date: Fri, 25 Jun 2010 15:12:39 -0700 Subject: [PATCH] Fix page.url to include full relative path. Fixes #181. --- History.txt | 1 + lib/jekyll/page.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/History.txt b/History.txt index 001eb800..4929791f 100644 --- a/History.txt +++ b/History.txt @@ -3,6 +3,7 @@ * Fix Rakefile 'release' task (tag pushing was missing origin) * Ensure that RedCloth is loaded when textilize filter is used (#183) * Expand source, destination, and plugin paths (#180) + * Fix page.url to include full relative path (#181) == 0.6.1 * Bug Fixes diff --git a/lib/jekyll/page.rb b/lib/jekyll/page.rb index 20e52f5f..3cdce5df 100644 --- a/lib/jekyll/page.rb +++ b/lib/jekyll/page.rb @@ -90,7 +90,7 @@ module Jekyll def to_liquid self.data.deep_merge({ - "url" => self.url, + "url" => File.join(@dir, self.url), "content" => self.content }) end