Replace .Site.x and $.Site.x with site.x.
This commit is contained in:
parent
a3a1294c4e
commit
3737d5874c
2 changed files with 99 additions and 98 deletions
|
|
@ -11,7 +11,7 @@
|
|||
{{ $srcsetw := (slice) }}
|
||||
{{ $title := .Get "title" -}}
|
||||
{{ $width := .Get "width" -}}
|
||||
{{ $maxwidth := .Site.Params.imageMaxWidth -}}
|
||||
{{ $maxwidth := site.Params.imageMaxWidth -}}
|
||||
{{ $realwidth := 0 -}}
|
||||
{{ $realheight := 0 -}}
|
||||
{{ if and $src (fileExists (add "/assets" $src)) -}}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
{{ $srcset := .Get "srcset" -}}
|
||||
{{ $srcsetw := (slice) }}
|
||||
{{ $width := .Get "width" -}}
|
||||
{{ $maxwidth := .Site.Params.imageMaxWidth -}}
|
||||
{{ $maxwidth := site.Params.imageMaxWidth -}}
|
||||
{{ $realwidth := 0 -}}
|
||||
{{ $realheight := 0 -}}
|
||||
{{ if and $src (fileExists (add "/assets" $src)) -}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue