diff --git a/partials/hero.hbs b/partials/hero.hbs index 583f202..efd31ea 100644 --- a/partials/hero.hbs +++ b/partials/hero.hbs @@ -2,30 +2,23 @@ If the template in question has a background image, then we render responsive image styles for it, and apply those styles to the
tag. --}} +{{!-- +If the template in question has a background image, then we render responsive image styles +for it, and apply those styles to the
tag. +--}} {{#if background}} - {{#contentFor "herobackground"}} - - {{/contentFor}} -
-
+
+ {{title}} +
{{else}}
{{/if}} diff --git a/src/sass/components/hero/_hero.scss b/src/sass/components/hero/_hero.scss index fab84e8..a4a356c 100644 --- a/src/sass/components/hero/_hero.scss +++ b/src/sass/components/hero/_hero.scss @@ -48,8 +48,17 @@ &.in-post { opacity: 1; } + display: flex; + align-items: center; + justify-content: center; + img { + width: 100%; + height: 100%; + object-fit: cover; + } } + .m-hero__content { position: relative; text-align: center;