Make hugo procces background image

This commit is contained in:
Mans Ziesel 2023-03-19 12:09:20 +01:00
parent cfb76c720f
commit ce2bb800c2
3 changed files with 1 additions and 0 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

View File

@ -7,6 +7,7 @@
{{ $homepageImage := "" }}
{{ with .Site.Params.defaultBackgroundImage }}{{ $homepageImage = resources.Get . }}{{ end }}
{{ with .Site.Params.homepage.homepageImage }}{{ $homepageImage = resources.Get . }}{{ end }}
{{ $homepageImage := $homepageImage.Resize "x1000" }}
{{ if not (eq $homepageImage "") }}
<img class="w-full h-[1000px] object-cover m-0 nozoom" src="{{ $homepageImage.RelPermalink }}" role="presentation">
<div

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 MiB