1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00

Fix some references to extensions[:frontmatter]

This commit is contained in:
Ben Hollis 2014-03-29 17:21:49 -07:00
parent abeee38126
commit c1f7299cfd
2 changed files with 5 additions and 6 deletions

View file

@ -32,7 +32,6 @@ module Middleman::CoreExtensions
end end
def after_configuration def after_configuration
app.extensions[:frontmatter] = self
app.ignore %r{\.frontmatter$} app.ignore %r{\.frontmatter$}
::Middleman::Sitemap::Resource.send :include, ResourceInstanceMethods ::Middleman::Sitemap::Resource.send :include, ResourceInstanceMethods
@ -71,7 +70,7 @@ module Middleman::CoreExtensions
# @private # @private
# @return [Hash] # @return [Hash]
def raw_data def raw_data
app.extensions[:frontmatter].data(source_file).first app.extensions[:front_matter].data(source_file).first
end end
# This page's frontmatter # This page's frontmatter

View file

@ -84,8 +84,8 @@ module Middleman
# @param [String] path # @param [String] path
# @return [String] # @return [String]
def get_template_data_for_file def get_template_data_for_file
if @app.extensions[:frontmatter] if @app.extensions[:front_matter]
@app.extensions[:frontmatter].template_data_for_file(@path) @app.extensions[:front_matter].template_data_for_file(@path)
else else
File.read(File.expand_path(@path, source_dir)) File.read(File.expand_path(@path, source_dir))
end end