diff options
author | Dillon <dillonzq@outlook.com> | 2020-05-12 17:51:48 +0300 |
---|---|---|
committer | Dillon <dillonzq@outlook.com> | 2020-05-12 17:51:48 +0300 |
commit | 6aa05a7f3e4ab75d4c7847d15a4af36375d1c4f0 (patch) | |
tree | e6e6d842740a47a5b1b7e90339397949fb9c8c66 /layouts/_default/summary.html | |
parent | 7c4962e39af0de5a47f0dbd0cb1f8d31b0486e99 (diff) |
fix(featuredImage): featuredImagePreview doesn't work by itself
Diffstat (limited to 'layouts/_default/summary.html')
-rw-r--r-- | layouts/_default/summary.html | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html index aeef606..7f4c12d 100644 --- a/layouts/_default/summary.html +++ b/layouts/_default/summary.html @@ -1,11 +1,10 @@ {{- $params := .Params | merge .Site.Params.page -}} <article class="single summary" itemscope itemtype="http://schema.org/Article"> {{- /* Featured image */ -}} - {{- with $params.featuredimage -}} + {{- with $params.featuredimagepreview | default $params.featuredimage -}} <div class="featured-image-preview"> <a href="{{ $.RelPermalink }}"> - {{- $image := $params.featuredimagepreview | default . -}} - {{- dict "src" $image "alt" $.Description "large" true | partial "plugin/image.html" -}} + {{- dict "src" . "alt" $.Description "large" true | partial "plugin/image.html" -}} </a> </div> {{- end -}} |