Skip to content

Commit af426e4

Browse files
committedDec 20, 2024·
Improve links
1 parent e9e6af9 commit af426e4

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed
 

Diff for: ‎_includes/blog-post-card.html

+4-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="well">
22
<div class="post-content">
3-
<h3>{{ post.title }}</h3>
3+
<h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
44
<p>
55
{% if post.author %}
66
{% for author_name in post.author %}
@@ -32,17 +32,12 @@ <h3>{{ post.title }}</h3>
3232
</p>
3333
{% endif %}
3434

35-
<p>
36-
<button class="btn btn-primary" onclick="window.location.href='{{ post.url }}'">Read More</button>
37-
</p>
3835
</div>
3936
{% if post.banner_image %}
4037
<div class="thumbnail-container">
41-
<img
42-
src="{{ post.banner_image }}"
43-
alt="Post Thumbnail"
44-
class="thumbnail-image"
45-
/>
38+
<a href="{{ post.url }}">
39+
<img src="{{ post.banner_image }}" alt="Post Thumbnail" class="thumbnail-image" />
40+
</a>
4641
</div>
4742
{% endif %}
4843
</div>

0 commit comments

Comments
 (0)
Please sign in to comment.