1 parent 0bd0941 commit 3a59d6cCopy full SHA for 3a59d6c
1 file changed
templates/partials/blogs.html
@@ -5,8 +5,9 @@
5
<h2 class="text-3xl font-bold text-gray-900 mb-12">Latest Blog Entries</h2>
6
<div class="grid md:grid-cols-2 lg:grid-cols-3 gap-6" id="capabilities-grid">
7
{#for post in site.collections.posts.subList(0, 6)}
8
- <div class="capability-card bg-white rounded-xl p-6 shadow-md"
9
- style="opacity: 0; animation: fadeInUp 0.6s ease-out 0.{post_index}s forwards;">
+ <div id="blog_post-{post_index}" class="capability-card bg-white rounded-xl p-6 shadow-md cursor-pointer"
+ style="opacity: 0; animation: fadeInUp 0.6s ease-out 0.{post_index}s forwards;"
10
+ onclick="window.location.href='{post.url.absolute}'">
11
{#if post.data.containsKey("image")}
12
<div class="text-5xl mb-4">
13
<img src="{post.image(post.data.image)}" style="max-height: 50px">
0 commit comments