Module: Spotlight::MastheadHelper

Included in:
MainAppHelpers
Defined in:
app/helpers/spotlight/masthead_helper.rb

Overview

Helper module for content in mastheads

Instance Method Summary collapse

Instance Method Details

#masthead_heading_contentObject



7
8
9
10
11
# File 'app/helpers/spotlight/masthead_helper.rb', line 7

def masthead_heading_content
  return current_exhibit.title if current_exhibit

  application_name
end

#masthead_subheading_contentObject



13
14
15
16
17
# File 'app/helpers/spotlight/masthead_helper.rb', line 13

def masthead_subheading_content
  return current_exhibit&.subtitle&.presence if current_exhibit

  current_site&.subtitle&.presence
end