From 20c8f81cbe949da5a2a8248473bae513f137d061 Mon Sep 17 00:00:00 2001 From: Thomas Reynolds Date: Thu, 14 Jul 2011 21:08:22 -0700 Subject: [PATCH] fix blog load order --- lib/middleman/features/blog.rb | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/middleman/features/blog.rb b/lib/middleman/features/blog.rb index 6b0ceb76..e7e4b177 100644 --- a/lib/middleman/features/blog.rb +++ b/lib/middleman/features/blog.rb @@ -42,6 +42,16 @@ module Middleman end $stderr.puts "== Blog: #{app.settings.blog_permalink}" + + app.get(app.settings.blog_permalink) do + process_request({ + :layout => settings.blog_layout, + :layout_engine => settings.blog_layout_engine + }) + + # No need for separator on permalink page + body body.gsub!(settings.blog_summary_separator, "") + end end app.before_processing do @@ -87,16 +97,6 @@ module Middleman app.data_content("blog", { :articles => articles, :tags => tags }) true end - - app.get(app.settings.blog_permalink) do - process_request({ - :layout => settings.blog_layout, - :layout_engine => settings.blog_layout_engine - }) - - # No need for separator on permalink page - body body.gsub!(settings.blog_summary_separator, "") - end end alias :included :registered end