diff --git a/assets/sass/_theme/design-system/header.sass b/assets/sass/_theme/design-system/header.sass index 87b68672f365997eefde3e9e80d7374ed0db9054..d72f3861ed57ad4e8ebc2b3023465759e83e07b5 100644 --- a/assets/sass/_theme/design-system/header.sass +++ b/assets/sass/_theme/design-system/header.sass @@ -7,7 +7,6 @@ header[role="banner"] width: 100% z-index: $zindex-header @include media-breakpoint-down(md) - padding: 1rem 0 width: 100% &.is-sticky background: $header-sticky-background @@ -26,9 +25,10 @@ header[role="banner"] @include media-breakpoint-up(md) &:not(:hover) transform: translateY(-100%) - + .logo img + display: block height: $header-logo-height width: auto @include media-breakpoint-up(md) diff --git a/layouts/partials/blocks/templates/pages.html b/layouts/partials/blocks/templates/pages.html index c68b0daa1fa8ad518a3cb140444f6988c2ddf3bb..e49b2ce5b460e4415128417bebae8f9ecbf1bf20 100644 --- a/layouts/partials/blocks/templates/pages.html +++ b/layouts/partials/blocks/templates/pages.html @@ -70,12 +70,14 @@ {{- .Scratch.Set "show_image" $show_images -}} {{- .Scratch.Set "show_description" $show_descriptions -}} + {{- .Scratch.Set "heading" "h3" -}} {{- if eq $layout "cards" -}} {{- .Scratch.Set "show_more" true -}} {{- end -}} {{- partial "pages/page.html" . -}} {{- .Scratch.Delete "show_image" -}} {{- .Scratch.Delete "show_description" -}} + {{- .Scratch.Delete "heading" -}} {{- if eq $layout "cards" -}} {{- .Scratch.Delete "show_more" -}} {{- end -}} diff --git a/layouts/partials/pages/page.html b/layouts/partials/pages/page.html index 7aa928172c1c7be59236d7341eaf5bb979fb3abb..95cb478b218a6bbbf97212a9cc5b820feeb3d910 100644 --- a/layouts/partials/pages/page.html +++ b/layouts/partials/pages/page.html @@ -1,6 +1,6 @@ {{- $class := "page" -}} {{- $custom_class := "" -}} - +{{- $heading := .Scratch.Get "heading" | default "h2" -}} {{- if .Params.bodyclass -}} {{ $class = printf "%s page-%s" $class .Params.bodyclass }} {{- end -}} @@ -11,11 +11,12 @@ {{- end -}} <article class="{{ $class }}"> <div> - <p class="title"> + {{- partial "PrepareHTML" (printf "<%s class='title'>" $heading) -}} <a href="{{ .Permalink }}"> {{- partial "PrepareHTML" .Title -}} </a> - </p> + {{- partial "PrepareHTML" (printf "</%s>" $heading) -}} + {{- if .Scratch.Get "show_description" }} {{- if .Params.description_short }} <p>{{ partial "PrepareHTML" .Params.description_short }}</p>