Skip to content

Commit

Permalink
Merge pull request #193 from isubit/D8ISUTHEME-182
Browse files Browse the repository at this point in the history
D8ISUTHEME-182 Add Hero Top and Hero Bottom full width theme regions
  • Loading branch information
sacarney committed Apr 26, 2022
2 parents 3c62a77 + 38d37c0 commit e6cb98c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions iastate_theme.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ regions:
menu_navbar: 'Menu Navbar'
post_nav: 'Post Nav'
breadcrumbs: 'Breadcrumbs'
hero_top: 'Hero Top'
content: 'Page Content'
sidebar_first: 'Sidebar First'
sidebar_second: 'Sidebar Second'
hero_bottom: 'Hero Bottom'
footer_first: 'Footer First'
footer_second: 'Footer Second'
footer_third: 'Footer Third'
Expand Down
8 changes: 8 additions & 0 deletions templates/layout/page.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@

{{ page.breadcrumbs }}

{% if page.hero_top %}
{{ page.hero_top }}
{% endif %}

<div class="container">
<div class="row">

Expand Down Expand Up @@ -117,6 +121,10 @@
</div>
</div>

{% if page.hero_bottom %}
{{ page.hero_bottom }}
{% endif %}

</main>

{% include '@iastate_theme/parts/footer.html.twig' %}
Expand Down

0 comments on commit e6cb98c

Please sign in to comment.