From 6d8c73349e2e05529a3e4f7b27dd808070b7ab0e Mon Sep 17 00:00:00 2001 From: remi Date: Sat, 20 Dec 2008 12:53:07 -0700 Subject: [PATCH] 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'] }}) --- lib/jekyll/post.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/jekyll/post.rb b/lib/jekyll/post.rb index 1d2bbb79..66a8eef6 100644 --- a/lib/jekyll/post.rb +++ b/lib/jekyll/post.rb @@ -142,12 +142,11 @@ module Jekyll # # Returns def to_liquid - { "title" => self.data["title"] || "", + self.data.merge({ "title" => self.data["title"] || "", "url" => self.url, "date" => self.date, "id" => self.id, - "content" => self.content, - "data" => self.data } + "content" => self.content }) end end