Permalink
Browse files

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

Place article name in the beginning of guides page title
  • Loading branch information...
2 parents ded5f5b + af660ee commit 1ce304f8165e4a930f1a8fb1f6706e61f6411096 @fxn fxn committed Jan 7, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 guides/rails_guides/markdown.rb
View
4 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 @@ 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

0 comments on commit 1ce304f

Please sign in to comment.