fix: restore individual tag route
This commit is contained in:
@ -1,6 +1,5 @@
|
||||
import Link from 'next/link'
|
||||
import { kebabCase } from 'pliny/utils/kebabCase'
|
||||
|
||||
import { slug } from 'github-slugger'
|
||||
interface Props {
|
||||
text: string
|
||||
}
|
||||
@ -8,7 +7,7 @@ interface Props {
|
||||
const Tag = ({ text }: Props) => {
|
||||
return (
|
||||
<Link
|
||||
href={`/tags/${kebabCase(text)}`}
|
||||
href={`/tags/${slug(text)}`}
|
||||
className="mr-3 text-sm font-medium uppercase text-primary-500 hover:text-primary-600 dark:hover:text-primary-400"
|
||||
>
|
||||
{text.split(' ').join('-')}
|
||||
|
Reference in New Issue
Block a user