diff options
author | Dmitry Kireev <dmitry@hazelops.com> | 2020-04-26 18:15:47 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-26 18:15:47 +0300 |
commit | c4741cfecbd91fdf82def26033c4bf66105dd3cb (patch) | |
tree | a3a7c5550b136aab13bde50e5c0caaa11d3b0f4d /layouts/_default/summary.html | |
parent | 19c7da333dc7244aca79dd5d70d3359fbf0da7f5 (diff) |
Add permalink to a featured images on the home page (#261)
Co-authored-by: Dillon <dillonzq@outlook.com>
Diffstat (limited to 'layouts/_default/summary.html')
-rw-r--r-- | layouts/_default/summary.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html index 9c36451..f8db06e 100644 --- a/layouts/_default/summary.html +++ b/layouts/_default/summary.html @@ -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 -}} |