diff --git a/views/blocks/banner/banner--center.twig b/views/organisms/blocks/banner/banner--center.twig similarity index 100% rename from views/blocks/banner/banner--center.twig rename to views/organisms/blocks/banner/banner--center.twig diff --git a/views/blocks/banner/banner--overlay.twig b/views/organisms/blocks/banner/banner--overlay.twig similarity index 100% rename from views/blocks/banner/banner--overlay.twig rename to views/organisms/blocks/banner/banner--overlay.twig diff --git a/views/blocks/banner/banner--side-text.twig b/views/organisms/blocks/banner/banner--side-text.twig similarity index 100% rename from views/blocks/banner/banner--side-text.twig rename to views/organisms/blocks/banner/banner--side-text.twig diff --git a/views/blocks/banner/banner-example.twig b/views/organisms/blocks/banner/banner-example.twig similarity index 100% rename from views/blocks/banner/banner-example.twig rename to views/organisms/blocks/banner/banner-example.twig diff --git a/views/blocks/banner/banner.html.twig b/views/organisms/blocks/banner/banner.html.twig similarity index 100% rename from views/blocks/banner/banner.html.twig rename to views/organisms/blocks/banner/banner.html.twig diff --git a/views/blocks/banner/banner.twig b/views/organisms/blocks/banner/banner.twig similarity index 100% rename from views/blocks/banner/banner.twig rename to views/organisms/blocks/banner/banner.twig diff --git a/views/organisms/blocks/banner/hero.twig b/views/organisms/blocks/banner/hero.twig new file mode 100644 index 000000000..bafe66c99 --- /dev/null +++ b/views/organisms/blocks/banner/hero.twig @@ -0,0 +1,10 @@ +{# Banner used in the header region #} + +
+ {% set hero_fields = post.get_field('hero') %} + {% set hero_fields = hero_fields ? hero_fields : [] %} + {% set hero_fields = hero_fields|merge({ 'title': hero_fields.title ? hero_fields.title : post.title }) %} + {% set hero_fields = hero_fields|merge({ 'image': hero_fields.image ? hero_fields.image : post.thumbnail }) %} + {% set hero_fields = hero_fields|merge({ 'is_hero': true }) %} + {% include 'blocks/banner/banner.twig' with { fields: hero_fields } %} +
\ No newline at end of file