feat: add a link tag (#4292)

Co-authored-by: Alex van Andel <me@alexvanandel.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
pull/4285/head^2
Nafees Nazik 2022-09-08 23:08:36 +05:30 committed by GitHub
parent 0c2a25fb78
commit 4aa9c830c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -121,9 +121,11 @@ const Component = ({
) : null}
</div>
<h2 className="text-sm font-medium text-gray-600">
<span className="rounded-md bg-gray-100 p-1 text-xs capitalize text-gray-800">
{categories[0]}
</span>{" "}
<Link href={`categories/${categories[0]}`}>
<a className="rounded-md bg-gray-100 p-1 text-xs capitalize text-gray-800">
{categories[0]}
</a>
</Link>{" "}
{t("published_by", { author })}
</h2>
</header>