From 08567b109153ceb69d814b5db181cc0fe13c7ea5 Mon Sep 17 00:00:00 2001 From: "maul.esel" Date: Mon, 22 Jul 2013 15:03:00 +0200 Subject: [PATCH] move path handling in pages to the `path` method, as in posts --- lib/jekyll/page.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/jekyll/page.rb b/lib/jekyll/page.rb index 5d1a9ea3..162a7fbe 100644 --- a/lib/jekyll/page.rb +++ b/lib/jekyll/page.rb @@ -118,14 +118,14 @@ module Jekyll self.data.deep_merge({ "url" => self.url, "content" => self.content, - "path" => self.data.fetch('path', path) }) + "path" => self.path }) end # The path to the source file # # Returns the path to the source file def path - File.join(@dir, @name).sub(/\A\//, '') + self.data.fetch('path', File.join(@dir, @name).sub(/\A\//, '')) end # Obtain destination path.