Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Kireev <dmitry@hazelops.com>2020-04-26 18:15:47 +0300
committerGitHub <noreply@github.com>2020-04-26 18:15:47 +0300
commitc4741cfecbd91fdf82def26033c4bf66105dd3cb (patch)
treea3a7c5550b136aab13bde50e5c0caaa11d3b0f4d /layouts/_default/summary.html
parent19c7da333dc7244aca79dd5d70d3359fbf0da7f5 (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.html6
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 -}}