You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
961 B
20 lines
961 B
- content_for :banner do
|
|
- image = image_path(image_file || 'empty-racks.jpg')
|
|
- style = nil
|
|
- cover = nil
|
|
- figure = nil
|
|
- if capable_of(:css_mixblendmode)
|
|
- cover = "<div class=\"cover\" style=\"background-image: url(#{image})\"></div>"
|
|
- else
|
|
- style = "background-image: url(#{image})"
|
|
#header-title.short{style: style}
|
|
= (render banner_image, {:image => image}) if defined?(banner_image) == "local-variable"
|
|
= cover.html_safe if cover
|
|
- if @page_title.present? || defined?(page_group)
|
|
- content_for :title do
|
|
= I18n.t(@page_title || "page_titles.#{page_group.to_s}.#{page_key.to_s}", @page_title_vars)
|
|
= row do
|
|
= columns do
|
|
%h1=@main_title_t || _(@main_title || "page_titles.#{page_group.to_s}.#{page_key.to_s}", :t, @main_title_vars || (@page_title_vars.present? && @page_title.blank? ? { vars: @page_title_vars } : nil))
|
|
- content_for :og_image do
|
|
= image
|
|
|