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.