1
0
Fork 0

Posts go to the right pages

This commit is contained in:
Ava Gaiety Wroten 2022-01-09 20:51:06 -06:00
parent 0ed71ae8be
commit 982ec954a4

View file

@ -26,7 +26,9 @@ pagination:
{%- for post in posts -%}
<div class="flex flex-col rounded-lg shadow-lg overflow-hidden">
<div class="flex-shrink-0">
<img class="h-48 w-full object-cover" src="{{ post.data.coverImage if post.data.coverImage else '/images/default-thumb.png'}}" alt="">
<a href="{{ post.url }}" tabindex="-1">
<img class="h-48 w-full object-cover" src="{{ post.data.coverImage if post.data.coverImage else '/images/default-thumb.png'}}" alt="">
</a>
</div>
<div class="flex-1 bg-white p-6 flex flex-col justify-between">
<div class="flex-1">
@ -37,7 +39,7 @@ pagination:
</a>
</p>
-->
<a href="#" class="block mt-2">
<a href="{{ post.url }}" class="block mt-2">
<h3 class="text-xl font-semibold text-gray-900">
{{ post.data.title }}
</h3>