mirror of
https://github.com/jekyll/jekyll.git
synced 2026-02-01 02:05:35 -05:00
move path handling in pages to the path method, as in posts
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user