aboutsummaryrefslogtreecommitdiff
path: root/app/helpers/layout_helper.rb
blob: 03917d545b36797c89513e66959598b77cc82da3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

module LayoutHelper
  # Returns a strign containing the string to be used for the <title> HTML tag.
  def page_title
    title = ENV.fetch('OPERUM_BASE_TITLE', 'Operum')

    if @subtitle
      "#{@subtitle} - #{title}"
    else
      title
    end
  end
end