提交 1ce304f8 编写于 作者: X Xavier Noria

Merge pull request #8773 from goshakkk/guides-page-titles

Place article name in the beginning of guides page title
# encoding: utf-8
require 'redcarpet'
require 'nokogiri'
require 'rails_guides/markdown/renderer'
......@@ -129,7 +131,7 @@ def generate_index
def generate_title
if heading = Nokogiri::HTML(@header).at(:h2)
@title = "Ruby on Rails Guides: #{heading.text}".html_safe
@title = "#{heading.text} — Ruby on Rails Guides".html_safe
else
@title = "Ruby on Rails Guides"
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册