mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-22 14:56:19 +01:00
Add permalink to a featured images on the home page (#261)
Co-authored-by: Dillon <dillonzq@outlook.com>
This commit is contained in:
parent
19c7da333d
commit
c4741cfecb
1 changed files with 4 additions and 2 deletions
|
@ -3,8 +3,10 @@
|
|||
{{- /* Featured image */ -}}
|
||||
{{- with $params.featuredimage -}}
|
||||
<div class="featured-image-preview">
|
||||
{{- $image := $params.featuredimagepreview | default . -}}
|
||||
{{- partial "plugin/image.html" (dict "src" $image "alt" $.Description "large" true) -}}
|
||||
<a href="{{ $.RelPermalink }}">
|
||||
{{- $image := $params.featuredimagepreview | default . -}}
|
||||
{{- partial "plugin/image.html" (dict "src" $image "alt" $.Description "large" true) -}}
|
||||
</a>
|
||||
</div>
|
||||
{{- end -}}
|
||||
|
||||
|
|
Loading…
Reference in a new issue