mirror of
https://github.com/jekyll/jekyll.git
synced 2026-02-07 13:15:18 -05:00
allow overriding page.path in YAML frontmatter
This commit is contained in:
@@ -125,7 +125,7 @@ module Jekyll
|
||||
self.data.deep_merge({
|
||||
"url" => self.url,
|
||||
"content" => self.content,
|
||||
"path" => File.join(@dir, @name).sub(/\A\//, '') })
|
||||
"path" => self.data['path'] || File.join(@dir, @name).sub(/\A\//, '') })
|
||||
end
|
||||
|
||||
# Obtain destination path.
|
||||
|
||||
@@ -287,7 +287,7 @@ module Jekyll
|
||||
"tags" => self.tags,
|
||||
"content" => self.content,
|
||||
"excerpt" => self.excerpt,
|
||||
"path" => File.join(@dir, '_posts', @name).sub(/\A\//, '') })
|
||||
"path" => self.data['path'] || File.join(@dir, '_posts', @name).sub(/\A\//, '') })
|
||||
end
|
||||
|
||||
# Returns the shorthand String identifier of this Post.
|
||||
|
||||
Reference in New Issue
Block a user