merged Post's YAML front matter into its to_liquid payload, just like Page does. allows {{ page.arbitrary_yaml_data }} (cleaner than {{ page.data['arbitrary_yaml_data'] }})

This commit is contained in:
remi 2008-12-20 12:53:07 -07:00
parent 4c05729adc
commit 6d8c73349e
1 changed files with 2 additions and 3 deletions

View File

@ -142,12 +142,11 @@ module Jekyll
# #
# Returns <Hash> # Returns <Hash>
def to_liquid def to_liquid
{ "title" => self.data["title"] || "", self.data.merge({ "title" => self.data["title"] || "",
"url" => self.url, "url" => self.url,
"date" => self.date, "date" => self.date,
"id" => self.id, "id" => self.id,
"content" => self.content, "content" => self.content })
"data" => self.data }
end end
end end