diff --git a/layouts/partials/blocks/templates/posts/large.html b/layouts/partials/blocks/templates/posts/large.html index 00595f822ffe1a9c75fe736b28781ab3713faec4..78af84e2a9ee9712c76a7eca7667aaa0fbfe7ae8 100644 --- a/layouts/partials/blocks/templates/posts/large.html +++ b/layouts/partials/blocks/templates/posts/large.html @@ -50,14 +50,19 @@ </div> <div class="media"> + {{ $post_image := "" }} {{- if .Params.image -}} + {{ $post_image = .Params.image }} + {{- else if site.Params.posts.default_image -}} + {{ $post_image = site.Data.website.default_image }} + {{ end }} + + {{- if or .Params.image site.Params.posts.default_image -}} {{- partial "commons/image.html" (dict - "image" .Params.image + "image" $post_image "sizes" site.Params.image_sizes.sections.posts.item ) -}} - {{- else if site.Params.posts.default_image -}} - {{- partial "commons/image-default.html" -}} {{- end -}} </div> </article>