Make header images less pixelated
This commit is contained in:
parent
7f103b00b7
commit
ff2e079dbc
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
||||||
{{ .Scratch.Set "image" .Params.image }}
|
{{ .Scratch.Set "image" .Params.image }}
|
||||||
{{ if hasPrefix .Params.image "resource:" }}
|
{{ if hasPrefix .Params.image "resource:" }}
|
||||||
{{ $resource := .Resources.GetMatch (replace .Params.image "resource:" "") }}
|
{{ $resource := .Resources.GetMatch (replace .Params.image "resource:" "") }}
|
||||||
{{ .Scratch.Set "image" ($resource.Resize "1000x").RelPermalink }}
|
{{ .Scratch.Set "image" ($resource.Resize "2000x").RelPermalink }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<div class="mb-3 image header-image" data-image='{{ .Scratch.Get "image" }}'></div>
|
<div class="mb-3 image header-image" data-image='{{ .Scratch.Get "image" }}'></div>
|
||||||
|
|
Loading…
Reference in a new issue