diff --git a/agaric/templates/layout/page--front.html.twig b/agaric/templates/layout/page--front.html.twig deleted file mode 100644 index 0ac231a..0000000 --- a/agaric/templates/layout/page--front.html.twig +++ /dev/null @@ -1,257 +0,0 @@ -{# -/** - * @file - * Default theme implementation to display a single page. - */ -#} - -{# - Limit the main content column to a max of 10 units at widescreen and above. - @see system/page.html.twig in the Bulma theme. -#} -{% if not page.content_attributes %} - {% - set page = page|merge({ - 'content_attributes': create_attribute().addClass([ - 'main-content', - 'column', - 'is-10-widescreen', - ]), - }) - %} -{% endif %} -{% block navbar %} -{% if page.navbar_branding or page.navbar_social or page.primary_menu %} -{# Top navbar #} -
- -
-{% endif %} -{% endblock navbar %} -{% block header %} -
- {% block header_and_search %} - {% if page.header or page.header_search %} - {# Header hero region + search #} -
-
-
-
- {{ page.header }} - {% if is_front and site_slogan %} -

{{ site_slogan }}

- {% endif %} -
-
- {{ page.header_search }} -
-
-
-
- {% endif %} - {% endblock header_and_search %} - {% block tabs %} - {# Drupal tabs #} - {% if page.header_tabs %} - - {% endif %} - {% endblock tabs %} -
-{% endblock header %} -{% block secondary_menu %} -{# Secondary menu #} -{% if page.secondary_menu %} - -{% endif %} -{% endblock secondary_menu %} -{% block tiles %} -{# Pinterest blocks style #} -{% if page.tile_one %} -
-
-
-
-
- {% if page.tile_one or page.tile_two %} -
-
- {{ page.tile_one }} -
-
- {{ page.tile_two }} -
-
- {% endif %} - - {% if page.tile_three %} -
-
- {{ page.tile_three }} -
-
- {% endif %} - -
- - {% if page.tile_four %} -
-
- {{ page.tile_four }} -
-
- {% endif %} - -
- - {% if page.tile_five %} -
-
- {{ page.tile_five }} -
-
- {% endif %} -
-
-
-{% endif %} -{% endblock tiles %} -{% block main %} -{# Main section #} - {{ page.highlighted }} - {{ page.help }} - -
- {% block main_content %} - {# Set attributes for content. #} - {% if not page.content_attributes %} - {% - set page = page|merge({ - 'content_attributes': create_attribute().addClass([ - 'main-content', - 'column', - ]), - }) - %} - {% endif %} - {# Main content #} - - {{ page.content }} -
- {% endblock main_content %} - {% block sidebar_first %} - {# Sidebar first #} - {% if page.sidebar_first %} - {# Set attributes for content. #} - {% if not page.sidebar_first_attributes %} - {% - set page = page|merge({ - 'sidebar_first_attributes': create_attribute().addClass([ - 'sidebar-first', - 'column', - 'is-2', - ]), - }) - %} - {% endif %} - - {{ page.sidebar_first }} - - {% endif %} - {% endblock sidebar_first %} - {% block sidebar_second %} - {# Sidebar second #} - {% if page.sidebar_second %} - {% if not page.sidebar_second_attributes %} - {% - set page = page|merge({ - 'sidebar_second_attributes': create_attribute().addClass([ - 'sidebar-second', - 'column', - 'is-2', - ]), - }) - %} - {% endif %} - - {{ page.sidebar_second }} - - {% endif %} - {% endblock sidebar_second %} - -{% endblock main %} -{% block content_bottom %} -{# First bottom section #} -{% if page.content_bottom %} - -{% endif %} -{% endblock content_bottom %} -{# Second bottom section #} -{% block bottom %} -{% if page.bottom %} - -{% endif %} -{% endblock bottom %} -{% block footer %} -{% if page.footer %} - -{% endif %} -{% endblock footer %} - - - - - - diff --git a/agaric/templates/layout/page.html.twig b/agaric/templates/layout/page.html.twig index c965c7c..1703759 100644 --- a/agaric/templates/layout/page.html.twig +++ b/agaric/templates/layout/page.html.twig @@ -36,6 +36,10 @@ {% endblock navbar %} {% set header_section_attributes = create_attribute({'class': ['hero', 'is-dark']}) %} +{% if is_front %} + {# TODO set a variable for background image so we can use base_path rather than / #} + {% set header_section_attributes = header_section_attributes.addClass('hero-main is-large').setAttribute('data-headerbg', 'transparent').setAttribute('style', 'background-image:url(/themes/custom/agarica/patternlibrary/agaric/images/fpo-video-poster.png)') %} +{% endif %} {% if false %} {% set header_section_attributes = header_section_attributes.removeClass('is-dark').setAttribute('data-headerbg', 'light') %} {% endif %}