lib/jekyll/page.rb in jekyll-2.0.0.alpha.3 vs lib/jekyll/page.rb in jekyll-2.0.0.rc1

- old
+ new

@@ -26,11 +26,16 @@ @site = site @base = base @dir = dir @name = name + process(name) read_yaml(File.join(base, dir), name) + + data.default_proc = proc do |hash, key| + site.frontmatter_defaults.find(File.join(dir, name), type, key) + end end # The generated directory into which the page will be placed # upon generation. This is derived from the permalink or, if # permalink is absent, we be '/'