mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-14 19:06: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 -}}
|
{{- $params := .Params | merge .Site.Params.page -}}
|
||||||
<article class="single summary" itemscope itemtype="http://schema.org/Article">
|
<article class="single summary" itemscope itemtype="http://schema.org/Article">
|
||||||
{{- /* Featured image */ -}}
|
{{- /* Featured image */ -}}
|
||||||
{{- with $params.featuredimage -}}
|
{{- with $params.featuredimagepreview | default $params.featuredimage -}}
|
||||||
<div class="featured-image-preview">
|
<div class="featured-image-preview">
|
||||||
<a href="{{ $.RelPermalink }}">
|
<a href="{{ $.RelPermalink }}">
|
||||||
{{- $image := $params.featuredimagepreview | default . -}}
|
{{- dict "src" . "alt" $.Description "large" true | partial "plugin/image.html" -}}
|
||||||
{{- dict "src" $image "alt" $.Description "large" true | partial "plugin/image.html" -}}
|
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
Loading…
Reference in a new issue