Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
tcurdt committed Aug 20, 2012
1 parent 0b89908 commit 63c221c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/awestruct/engine.rb
Expand Up @@ -245,7 +245,8 @@ def generate_page(page, generated_path, produce_output=true)

def generate_page_by_output_path(path)
full_path = File.join( '', path )
page = site.pages.find{|p| p.relative_source_path.to_s==full_path} || site.layouts.find{|p| p.relative_source_path.to_s==full_path}
page = site.pages.find{ |p| p.relative_source_path.to_s == full_path } ||
site.layouts.find{ |p| p.relative_source_path.to_s == full_path }
return if page.nil?

if !page.output_path.nil?
Expand Down

0 comments on commit 63c221c

Please sign in to comment.