Use h1 from header for guides title tag [ci-skip]
As the main heading is now a h1, the h1 should be used for the title.
This commit is contained in:
parent
836fdecd30
commit
905ab23705
@ -150,7 +150,7 @@ def generate_index
|
||||
end
|
||||
|
||||
def generate_title
|
||||
if heading = Nokogiri::HTML.fragment(@header).at(:h2)
|
||||
if heading = Nokogiri::HTML.fragment(@header).at(:h1)
|
||||
@title = "#{heading.text} — Ruby on Rails Guides"
|
||||
else
|
||||
@title = "Ruby on Rails Guides"
|
||||
|
Loading…
Reference in New Issue
Block a user