mirror of
https://github.com/ItsDrike/itsdrike.com.git
synced 2025-06-29 16:10:43 +00:00
Format HTML everywhere
This commit is contained in:
parent
8955235db0
commit
75a45a192b
18 changed files with 174 additions and 189 deletions
|
@ -1,9 +1,9 @@
|
|||
{{ 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" }}' />
|
||||
{{ .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 }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue