public
Rubygem
Description: Jekyll is a blog-aware, static site generator in Ruby
Homepage: http://jekyllrb.com
Clone URL: git://github.com/mojombo/jekyll.git
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'] }})
remi (author)
Sat Dec 20 11:53:07 -0800 2008
commit  6d8c73349e2e05529a3e4f7b27dd808070b7ab0e
tree    9b6b547643aa8d2c9e0b039674764f3aa47e320f
parent  4c05729adc1630786c2f6bc5a2f4f49577aa39b2
...
142
143
144
145
 
146
147
148
149
150
 
151
152
153
...
142
143
144
 
145
146
147
148
 
 
149
150
151
152
0
@@ -142,12 +142,11 @@ module Jekyll
0
     #
0
     # Returns <Hash>
0
     def to_liquid
0
-      { "title" => self.data["title"] || "",
0
+      self.data.merge({ "title" => self.data["title"] || "",
0
         "url" => self.url,
0
         "date" => self.date,
0
         "id" => self.id,
0
-        "content" => self.content,
0
-        "data" => self.data }
0
+        "content" => self.content })
0
     end
0
   end
0
 

Comments