diff --git a/assets/scss/blocks/_hero.scss b/assets/scss/blocks/_hero.scss index 292033c5..80f9d4dd 100644 --- a/assets/scss/blocks/_hero.scss +++ b/assets/scss/blocks/_hero.scss @@ -56,10 +56,15 @@ } } + // When taglines sit above the title, they own the top spacing + .hero-taglines + h1 { + padding-top: 0; + } + .hero-taglines { list-style: none; - padding: 0; - margin: 1rem 0 0; + padding: 50px 0 0; + margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: 0.6rem; diff --git a/layouts/shortcodes/blocks/hero.html b/layouts/shortcodes/blocks/hero.html index ed907bd1..8e7fa71b 100644 --- a/layouts/shortcodes/blocks/hero.html +++ b/layouts/shortcodes/blocks/hero.html @@ -39,13 +39,13 @@
- {{ with .Get "title" }}

{{ . | html }}

{{ end }} - {{ with .Get "subtitle" }}

{{ . | html }}

{{ end }} {{ with .Page.Params.taglines }} {{ end }} + {{ with .Get "title" }}

{{ . | html }}

{{ end }} + {{ with .Get "subtitle" }}

{{ . | html }}

{{ end }}
@@ -63,11 +63,11 @@ {{ else }} {{ .Inner | htmlUnescape | safeHTML }} {{ end }} - + {{ if ne $link_url "#" }} {{ $link_title }} {{ end }} - +