Module: Enki::PageTitleHelper

Included in:
ApplicationController
Defined in:
app/helpers/enki/page_title_helper.rb

Instance Method Summary collapse

Instance Method Details

#archives_titleObject



11
12
13
# File 'app/helpers/enki/page_title_helper.rb', line 11

def archives_title
  compose_title("Archives")
end

#html_title(content) ⇒ Object



19
20
21
22
23
24
25
# File 'app/helpers/enki/page_title_helper.rb', line 19

def html_title(content)
  if content.present?
    content
  else
    Enki.config[:title]
  end
end

#page_title(page) ⇒ Object



15
16
17
# File 'app/helpers/enki/page_title_helper.rb', line 15

def page_title(page)
  compose_title(page.title)
end

#post_title(post) ⇒ Object



7
8
9
# File 'app/helpers/enki/page_title_helper.rb', line 7

def post_title(post)
  compose_title(post.title)
end

#posts_title(tag) ⇒ Object



3
4
5
# File 'app/helpers/enki/page_title_helper.rb', line 3

def posts_title(tag)
  compose_title((tag || "").to_s.titleize)
end