diff --git a/layouts/partials/fragments/hero.html b/layouts/partials/fragments/hero.html index 3cf2b4a4..1391af85 100644 --- a/layouts/partials/fragments/hero.html +++ b/layouts/partials/fragments/hero.html @@ -12,6 +12,9 @@ {{- with .Params.minHeight -}} {{- (printf "min-height: %s;" .) | safeCSS -}} {{- end -}} + {{- if .Params.parallax -}} + background-attachment: fixed; + {{- end -}} background-image:url({{ partial "helpers/image.html" (dict "root" $self "asset" .Params.header) }})" class="jumbotron text-center header-image mb-0 {{- printf " bg-%s" $bg -}}