Skip to content

Commit 905ab23

Browse files
committed
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.
1 parent 836fdec commit 905ab23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/rails_guides/markdown.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def generate_index
150150
end
151151

152152
def generate_title
153-
if heading = Nokogiri::HTML.fragment(@header).at(:h2)
153+
if heading = Nokogiri::HTML.fragment(@header).at(:h1)
154154
@title = "#{heading.text} — Ruby on Rails Guides"
155155
else
156156
@title = "Ruby on Rails Guides"

0 commit comments

Comments
 (0)