mirror of
https://github.com/ItsDrike/itsdrike.com.git
synced 2024-11-10 05:59:41 +00:00
10 lines
358 B
HTML
10 lines
358 B
HTML
|
{{ if .Params.image }}
|
||
|
{{ .Scratch.Set "image" .Params.image }}
|
||
|
{{ if hasPrefix .Params.image "resource:" }}
|
||
|
{{ $resource := .Resources.GetMatch (replace .Params.image "resource:" "") }}
|
||
|
{{ .Scratch.Set "image" ($resource.Resize "2000x").RelPermalink }}
|
||
|
{{ end }}
|
||
|
|
||
|
<img class="mb-3 header-image" src='{{ .Scratch.Get "image" }}' />
|
||
|
{{ end }}
|