Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDillon <dillonzq@outlook.com>2020-05-12 17:51:48 +0300
committerDillon <dillonzq@outlook.com>2020-05-12 17:51:48 +0300
commit6aa05a7f3e4ab75d4c7847d15a4af36375d1c4f0 (patch)
treee6e6d842740a47a5b1b7e90339397949fb9c8c66 /layouts/_default/summary.html
parent7c4962e39af0de5a47f0dbd0cb1f8d31b0486e99 (diff)
fix(featuredImage): featuredImagePreview doesn't work by itself
Diffstat (limited to 'layouts/_default/summary.html')
-rw-r--r--layouts/_default/summary.html5
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 -}}