fix blog load order
This commit is contained in:
parent
45497d4025
commit
20c8f81cbe
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue