Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lib/ronn/template.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require 'mustache'
require 'hpricot'

module Ronn
class Template < Mustache
Expand Down Expand Up @@ -36,10 +37,11 @@ def name_and_section?

def title
if !name_and_section? && tagline
tagline
result = tagline
else
[page_name, tagline].compact.join(' - ')
result = [page_name, tagline].compact.join(' - ')
end
Hpricot(result).to_plain_text
end

def custom_title?
Expand Down