mirror of
https://github.com/jekyll/jekyll.git
synced 2026-02-07 21:25:21 -05:00
pass time object to liquid when time is specified in front matter
This commit is contained in:
@@ -201,7 +201,8 @@ module Jekyll
|
||||
#
|
||||
# Returns <Hash>
|
||||
def to_liquid
|
||||
{ "title" => self.data["title"] || self.slug.split('-').select {|w| w.capitalize! || w }.join(' '),
|
||||
self.data.deep_merge({
|
||||
"title" => self.data["title"] || self.slug.split('-').select {|w| w.capitalize! || w }.join(' '),
|
||||
"url" => self.url,
|
||||
"date" => self.date,
|
||||
"id" => self.id,
|
||||
@@ -209,7 +210,7 @@ module Jekyll
|
||||
"next" => self.next,
|
||||
"previous" => self.previous,
|
||||
"tags" => self.tags,
|
||||
"content" => self.content }.deep_merge(self.data)
|
||||
"content" => self.content })
|
||||
end
|
||||
|
||||
def inspect
|
||||
|
||||
Reference in New Issue
Block a user