diff options
Diffstat (limited to 'themes/default/layouts/partials/function-caches-images.html')
-rw-r--r-- | themes/default/layouts/partials/function-caches-images.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/themes/default/layouts/partials/function-caches-images.html b/themes/default/layouts/partials/function-caches-images.html index 2102bef..c99103b 100644 --- a/themes/default/layouts/partials/function-caches-images.html +++ b/themes/default/layouts/partials/function-caches-images.html @@ -1,3 +1,4 @@ +{{- $pageContext := .Context -}} {{- $data := dict -}} {{- $source := or .Source "nil" -}} {{- $fit := .Fit -}} @@ -47,7 +48,7 @@ -}} {{- end -}} {{- else -}} - {{- with $image := resources.GetRemote $source -}} + {{- with $image := cond (default true $pageContext.Site.Params.site.offline) false (resources.GetRemote $source) -}} {{- with .Err -}} {{- if $localized -}} {{- $directory := path.Dir $local -}} |