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