Module: TitleHelper

Defined in:
app/helpers/title_helper.rb

Instance Method Summary collapse

Instance Method Details

#meta_descObject


6
7
8
# File 'app/helpers/title_helper.rb', line 6

def meta_desc
  "#{page_title} - #{I18n.tw("meta_desc")}"
end

#page_titleObject


2
3
4
# File 'app/helpers/title_helper.rb', line 2

def page_title
  "#{title} - #{title_mapping ? title_mapping.call : subtitle}"
end

#subtitleObject


14
15
16
# File 'app/helpers/title_helper.rb', line 14

def subtitle
  I18n.tw("subtitle")
end

#titleObject


10
11
12
# File 'app/helpers/title_helper.rb', line 10

def title
  I18n.tw("title")
end