Posts go to the right pages
This commit is contained in:
parent
0ed71ae8be
commit
982ec954a4
1 changed files with 4 additions and 2 deletions
|
@ -26,7 +26,9 @@ pagination:
|
||||||
{%- for post in posts -%}
|
{%- for post in posts -%}
|
||||||
<div class="flex flex-col rounded-lg shadow-lg overflow-hidden">
|
<div class="flex flex-col rounded-lg shadow-lg overflow-hidden">
|
||||||
<div class="flex-shrink-0">
|
<div class="flex-shrink-0">
|
||||||
|
<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="">
|
<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>
|
||||||
<div class="flex-1 bg-white p-6 flex flex-col justify-between">
|
<div class="flex-1 bg-white p-6 flex flex-col justify-between">
|
||||||
<div class="flex-1">
|
<div class="flex-1">
|
||||||
|
@ -37,7 +39,7 @@ pagination:
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
-->
|
-->
|
||||||
<a href="#" class="block mt-2">
|
<a href="{{ post.url }}" class="block mt-2">
|
||||||
<h3 class="text-xl font-semibold text-gray-900">
|
<h3 class="text-xl font-semibold text-gray-900">
|
||||||
{{ post.data.title }}
|
{{ post.data.title }}
|
||||||
</h3>
|
</h3>
|
||||||
|
|
Loading…
Add table
Reference in a new issue