fix blog load order
This commit is contained in:
parent
45497d4025
commit
20c8f81cbe
1 changed files with 10 additions and 10 deletions
|
@ -42,6 +42,16 @@ module Middleman
|
||||||
end
|
end
|
||||||
|
|
||||||
$stderr.puts "== Blog: #{app.settings.blog_permalink}"
|
$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
|
end
|
||||||
|
|
||||||
app.before_processing do
|
app.before_processing do
|
||||||
|
@ -87,16 +97,6 @@ module Middleman
|
||||||
app.data_content("blog", { :articles => articles, :tags => tags })
|
app.data_content("blog", { :articles => articles, :tags => tags })
|
||||||
true
|
true
|
||||||
end
|
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
|
end
|
||||||
alias :included :registered
|
alias :included :registered
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue