parent
5c680db758
commit
d64fd1e8fe
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue