Merge pull request #442 from eduhund/link-header-reorder

#441 Safari only: Related Posts multi-line header links behave unhandy
This commit is contained in:
André B
2024-05-07 14:16:57 -04:00
committed by GitHub

View File

@@ -36,19 +36,21 @@ const image = await findImage(post.image);
) )
} }
</div> </div>
<h3 class="mb-2 text-xl font-bold leading-tight sm:text-2xl font-heading">
{ {
!APP_BLOG?.post?.isEnabled ? ( !APP_BLOG?.post?.isEnabled ? (
post.title post.title
) : ( ) : (
<a <a
href={getPermalink(post.permalink, 'post')} href={getPermalink(post.permalink, 'post')}
class="hover:text-primary dark:hover:text-blue-700 transition ease-in duration-200" 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} {post.title}
</h3>
</a> </a>
) )
} }
</h3>
<p class="text-muted dark:text-slate-400 text-lg">{post.excerpt}</p> <p class="text-muted dark:text-slate-400 text-lg">{post.excerpt}</p>
</article> </article>