From 19ff7a46bb2043c10c519adbdad3620678120d54 Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Thu, 10 Sep 2020 18:58:41 +0200 Subject: [PATCH] fix(_default/term): switch to new image helper --- layouts/_default/term.html | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/layouts/_default/term.html b/layouts/_default/term.html index cae47d1..d0f9471 100644 --- a/layouts/_default/term.html +++ b/layouts/_default/term.html @@ -15,12 +15,16 @@ {{ end }} - {{ if .Params.image }} - {{- $image := partial "helper/image" . -}} - {{- $thumbnail := $image.Fill "120x120" -}} + {{ $image := partial "helper/image" . }} + {{ if $image.exists }}
- + {{ if $image.local }} + {{- $thumbnail := $image.src.Fill "120x120" -}} + + {{ else }} + + {{ end }}
{{ end }}