diff --git a/layouts/_default/term.html b/layouts/_default/term.html index d0f9471..4ca37da 100644 --- a/layouts/_default/term.html +++ b/layouts/_default/term.html @@ -18,12 +18,12 @@ {{ $image := partial "helper/image" . }} {{ if $image.exists }}
- {{ if $image.local }} - {{- $thumbnail := $image.src.Fill "120x120" -}} + {{ if $image.resource }} + {{- $thumbnail := $image.resource.Fill "120x120" -}} {{ else }} - + {{ end }}
{{ end }} diff --git a/layouts/partials/article-list/compact.html b/layouts/partials/article-list/compact.html index dfcc276..bebb573 100644 --- a/layouts/partials/article-list/compact.html +++ b/layouts/partials/article-list/compact.html @@ -16,12 +16,12 @@ {{ if $image.exists }}
- {{ if $image.local }} - {{- $thumbnail := $image.src.Fill "120x120" -}} + {{ if $image.resource }} + {{- $thumbnail := $image.resource.Fill "120x120" -}} {{ else }} - Featured image of post {{ .Title }} + Featured image of post {{ .Title }} {{ end }}
{{ end }} diff --git a/layouts/partials/article-list/default.html b/layouts/partials/article-list/default.html index 45f00d1..0beaeca 100644 --- a/layouts/partials/article-list/default.html +++ b/layouts/partials/article-list/default.html @@ -1,19 +1,18 @@ -
- {{ $image := partial "helper/image" . }} - +{{ $image := partial "helper/image" . }} +
{{ if $image.exists }}
- {{ if $image.local }} - {{- $thumbnail := $image.src.Fill "800x250" -}} - {{- $thumbnailRetina := $image.src.Fill "1600x500" -}} + {{ if $image.resource }} + {{- $thumbnail := $image.resource.Fill "800x250" -}} + {{- $thumbnailRetina := $image.resource.Fill "1600x500" -}} Featured image of post {{ .Title }} {{ else }} - Featured image of post {{ .Title }} + Featured image of post {{ .Title }} {{ end }}
diff --git a/layouts/partials/article-list/tile.html b/layouts/partials/article-list/tile.html index 6b4375a..a6a29a0 100644 --- a/layouts/partials/article-list/tile.html +++ b/layouts/partials/article-list/tile.html @@ -4,14 +4,14 @@ {{ if $image.exists }}
- {{ if $image.local }} - {{- $imageRaw := $image.src | resources.Fingerprint "md5" -}} + {{ if $image.resource }} + {{- $imageRaw := $image.resource | resources.Fingerprint "md5" -}} {{- $thumbnail := $imageRaw.Fill .size -}} {{ else }} - + {{ end }}
{{ end }} diff --git a/layouts/partials/article/components/details.html b/layouts/partials/article/components/details.html index 0e3ff50..9ba972c 100644 --- a/layouts/partials/article/components/details.html +++ b/layouts/partials/article/components/details.html @@ -4,8 +4,8 @@ {{ with $categories := .Params.categories }}