Make hugo procces background image
This commit is contained in:
parent
cfb76c720f
commit
ce2bb800c2
Binary file not shown.
Before Width: | Height: | Size: 18 KiB |
@ -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 |
Loading…
Reference in New Issue
Block a user