Skip to content

Commit

Permalink
place article name in the beginning of guides page title
Browse files Browse the repository at this point in the history
  • Loading branch information
goshacmd committed Jan 5, 2013
1 parent 2516a1d commit af660ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion guides/rails_guides/markdown.rb
@@ -1,3 +1,5 @@
# encoding: utf-8

require 'redcarpet'
require 'nokogiri'
require 'rails_guides/markdown/renderer'
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit af660ee

Please sign in to comment.