Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
fix(featuredImage): featuredImagePreview doesn't work by itself
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonzq committed May 12, 2020
1 parent 7c4962e commit 6aa05a7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions layouts/_default/summary.html
Original file line number Diff line number Diff line change
@@ -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 -}}
Expand Down

0 comments on commit 6aa05a7

Please sign in to comment.