mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-14 10:56:16 +01:00
fix(featuredImage): featuredImagePreview doesn't work by itself
This commit is contained in:
parent
7c4962e39a
commit
6aa05a7f3e
1 changed files with 2 additions and 3 deletions
|
@ -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 -}}
|
||||
|
|
Loading…
Reference in a new issue