aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2013-01-07 13:54:19 -0800
committerXavier Noria <fxn@hashref.com>2013-01-07 13:54:19 -0800
commit1ce304f8165e4a930f1a8fb1f6706e61f6411096 (patch)
treebeb4989e3fd3cf9009b91402f6ef7acd077c7aa0
parentded5f5b261b324767406baca41193c08c966008a (diff)
parentaf660ee717f7e76303ba4672bd18ee0d57683dda (diff)
downloadrails-1ce304f8165e4a930f1a8fb1f6706e61f6411096.tar.gz
rails-1ce304f8165e4a930f1a8fb1f6706e61f6411096.tar.bz2
rails-1ce304f8165e4a930f1a8fb1f6706e61f6411096.zip
Merge pull request #8773 from goshakkk/guides-page-titles
Place article name in the beginning of guides page title
-rw-r--r--guides/rails_guides/markdown.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/guides/rails_guides/markdown.rb b/guides/rails_guides/markdown.rb
index 650489e6cb..547c6d2c15 100644
--- a/guides/rails_guides/markdown.rb
+++ b/guides/rails_guides/markdown.rb
@@ -1,3 +1,5 @@
+# encoding: utf-8
+
require 'redcarpet'
require 'nokogiri'
require 'rails_guides/markdown/renderer'
@@ -129,7 +131,7 @@ module RailsGuides
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