Set default widget sort to created_at
Don't use page category when home
This commit is contained in:
1 parent
ec9c68f039
commit
3e79b787bb
2 files changed
+6
-6
No files matched your search
@@ -19,7 +19,7 @@ module ParserFrontEnd
|
||||
end
|
||||
|
||||
def parse_page_content(page)
|
||||
category = params[:category_id].blank? ? page[:category] : params[:category_id]
|
||||
category = params[:category_id].blank? ? (page[:category] unless page.root?) : params[:category_id]
|
||||
tag = params[:tag_id].blank? ? page[:tag] : params[:tag_id]
|
||||
body = Nokogiri::HTML(page.content)
|
||||
body.css('orbit_front').each do |front|
|
||||
|
||||
Reference in new issue
Block a user