mirror of
https://github.com/jekyll/jekyll.git
synced 2026-01-31 01:38:24 -05:00
@@ -124,7 +124,8 @@ module Jekyll
|
||||
def to_liquid
|
||||
self.data.deep_merge({
|
||||
"url" => self.url,
|
||||
"content" => self.content })
|
||||
"content" => self.content,
|
||||
"path" => File.join(@dir, @name).sub(/\A\//, '') })
|
||||
end
|
||||
|
||||
# Obtain destination path.
|
||||
|
||||
@@ -33,6 +33,7 @@ module Jekyll
|
||||
# Returns the new Post.
|
||||
def initialize(site, source, dir, name)
|
||||
@site = site
|
||||
@dir = dir
|
||||
@base = self.containing_dir(source, dir)
|
||||
@name = name
|
||||
|
||||
@@ -285,7 +286,8 @@ module Jekyll
|
||||
"previous" => self.previous,
|
||||
"tags" => self.tags,
|
||||
"content" => self.content,
|
||||
"excerpt" => self.excerpt })
|
||||
"excerpt" => self.excerpt,
|
||||
"path" => File.join(@dir, @name).sub(/\A\//, '') })
|
||||
end
|
||||
|
||||
# Returns the shorthand String identifier of this Post.
|
||||
|
||||
Reference in New Issue
Block a user