Remove hero param stretch

This commit is contained in:
Will Faught
2023-04-08 00:10:08 -07:00
parent 5ee01538f5
commit 8b013dc758
3 changed files with 4 additions and 18 deletions

View File

@@ -8,23 +8,12 @@
{{ $maxwidth := .Get "maxwidth" }}
{{ $page := .Page }}
{{ $process := .Get "process" }}
{{ $stretch := .Get "stretch" }}
{{ $title := .Get "title" }}
{{ $width := .Get "width" }}
<div class="paige-hero">
{{ with $image }}
{{ $classes := split $imageclass " "}}
{{ if $stretch }}
{{ $classes = $classes | append "object-fit-cover w-100" }}
{{ else }}
{{ $classes = $classes | append "mw-100" }}
{{ end }}
{{ $imageclass = delimit $classes " " }}
<p {{ if or (not $stretch) $width }} class="text-center paige-hero-image" {{ end }}>
<p class="text-center paige-hero-image">
{{ partial "paige/img.html" (dict
"alt" $alt
"class" $imageclass