lib/awestruct/front_matter_file.rb in awestruct-0.2.11 vs lib/awestruct/front_matter_file.rb in awestruct-0.2.12

- old
+ new

@@ -14,10 +14,11 @@ protected def load_page full_content = File.read( source_path ) + full_content.force_encoding(@site.encoding) if @site.encoding yaml_content = '' dash_lines = 0 mode = :yaml @@ -40,10 +41,10 @@ yaml_content = '' end begin @front_matter = YAML.load( yaml_content ) || {} - @front_matter.each do |k,v| + @front_matter.each do |k,v| self.send( "#{k}=", v ) end rescue => e puts "error reading #{self}: #{e}" end