diff --git a/layouts/_partials/article-list/tile.html b/layouts/_partials/article-list/tile.html index 25c15fc..8e9df0f 100644 --- a/layouts/_partials/article-list/tile.html +++ b/layouts/_partials/article-list/tile.html @@ -1,16 +1,16 @@ -{{ $image := partial "helper/image" (dict "Image" .context.Params.image "Resources" .context.Resources "Context" .context) }} +{{ $image := partial "helper/image" (dict "Image" .Params.image "Resources" .Resources "Context" .) }}
- + {{ if $image }}
{{ partial "helper/thumbnail-image" (dict "Resource" $image.Resource "Width" 250 "Height" 150 - "Resize" .context.Site.Params.ImageProcessing.Thumbnail.Enabled + "Resize" .Site.Params.ImageProcessing.Thumbnail.Enabled "Attributes" (dict "src" $image.Permalink - "alt" (printf "Featured image of post %s" .context.Title) + "alt" (printf "Featured image of post %s" .Title) "loading" "lazy" "width" $image.Width "height" $image.Height @@ -30,7 +30,7 @@ {{- end -}} >

- {{- .context.Title -}} + {{- .Title -}}

diff --git a/layouts/_partials/article/components/related-content.html b/layouts/_partials/article/components/related-content.html index 294c8c4..c121303 100644 --- a/layouts/_partials/article/components/related-content.html +++ b/layouts/_partials/article/components/related-content.html @@ -5,7 +5,7 @@
{{ range . }} - {{ partial "article-list/tile" (dict "context" . "size" "250x150" "Type" "articleList") }} + {{ partial "article-list/tile" . }} {{ end }}
diff --git a/layouts/archives.html b/layouts/archives.html index 41be5b8..e2853c1 100644 --- a/layouts/archives.html +++ b/layouts/archives.html @@ -8,7 +8,7 @@
{{ range $terms }} - {{ partial "article-list/tile" (dict "context" . "size" "250x150" "Type" "taxonomy") }} + {{ partial "article-list/tile" . }} {{ end }}
diff --git a/layouts/list.html b/layouts/list.html index 3e9f535..777bb41 100644 --- a/layouts/list.html +++ b/layouts/list.html @@ -51,7 +51,7 @@
{{ range . }} - {{ partial "article-list/tile" (dict "context" . "size" "250x150" "Type" "section") }} + {{ partial "article-list/tile" . }} {{ end }}