Skip to content

Commit 37ff4c5

Browse files
committed
chore: the image is clickable
1 parent db4bdc6 commit 37ff4c5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

themes/hugoplate/layouts/partials/components/blog-card.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
<div class="bg-body dark:bg-darkmode-body">
22
{{ $image:= .Params.image }}
33
{{ if $image }}
4-
{{ partial "image" (dict "Src" $image "Context" .Page "Alt" .Title "Class" "mb-6 w-full rounded") }}
4+
<a href="{{ .RelPermalink }}">
5+
{{ partial "image" (dict "Src" $image "Context" .Page "Alt" .Title "Class" "mb-6 w-full rounded") }}
6+
</a>
57
{{ end }}
68
<h4 class="mb-3">
79
<a href="{{ .RelPermalink }}">

0 commit comments

Comments
 (0)