2022-10-16 10:49:52 -05:00
|
|
|
{{- $images := .Resources.ByType "image" -}}
|
|
|
|
{{- $featured := $images.GetMatch "*feature*" -}}
|
|
|
|
{{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}}
|
|
|
|
{{- with $featured -}}
|
|
|
|
{{ with .Resize "1200x" }}
|
2022-10-17 04:34:34 -05:00
|
|
|
<div id="hero" class="relative h-[300px] single_hero_background nozoom" style="background-image:url({{ .RelPermalink }});">
|
2022-10-16 10:49:52 -05:00
|
|
|
<div class="hero_gradient bg-gradient-to-t from-neutral dark:from-neutral-800 to-transparent mix-blend-normal"></div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
{{- end -}}
|