Skip to content

Commit 9b0c816

Browse files
authored
Merge pull request rails#47997 from p8/guides/fix-title
Use h1 from header for guides title tag [ci-skip]
2 parents 836fdec + 905ab23 commit 9b0c816

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)