Removing a site title

Following the tips, I successfully deleted body_content_title from other pages. However, on the blog home page I can’t get a name to disappear. I tried setting: body_content_title to null according to the FAQ, but this does not work.

<% content_for :body_content_title => ""%> 

Looking at the view of index.html.erb, it seems that the name information is contained in the line

 <% content_for :body_content_left do %> 

but I cannot find where the information is entered / displayed for: body_content_left. Any help to clarify this would be greatly appreciated!

Thanks for reading this, DC

+4
source share
1 answer

I was stuck with this for several hours, and I figured out how to solve it.

I am using refinery-blog Version 2.0.4

and what I did redefined the index file:

 rake refinery:override view=refinery/blog/posts/index 

then replaced line 19 ( <%= render :partial => "/refinery/content_page" %> ) with:

 <%= render :partial => "/refinery/content_page", :locals => { :remove_automatic_sections => true } %> 

You can also replace the same line:

 <%= render '/refinery/content_page', :hide_sections => :body_content_title %> 

there are two ways to write the same thing, but I think the second is cleaner.

+8
source

Source: https://habr.com/ru/post/1415685/


All Articles