Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions src/components/blog/GridItem.astro
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,22 @@ const link = APP_BLOG?.post?.isEnabled ? getPermalink(post.permalink, 'post') :
))
}
</div>

<h3 class="text-xl sm:text-2xl font-bold leading-tight mb-2 font-heading dark:text-slate-300">

{
link ? (
<a class="inline-block hover:text-primary dark:hover:text-blue-700 transition ease-in duration-200" href={link}>
!APP_BLOG?.post?.isEnabled ? (
post.title
) : (
<a
href={getPermalink(post.permalink, 'post')}
class="inline-block hover:text-primary dark:hover:text-blue-700 transition ease-in duration-200"
>
<h3 class="mb-2 text-xl font-bold leading-tight sm:text-2xl font-heading">
{post.title}
</h3>
</a>
) : (
post.title
)
}
</h3>

<p class="text-muted dark:text-slate-400 text-lg">{post.excerpt}</p>
</article>