upstream #1
@ -4,7 +4,7 @@ import { kebabCase } from '@/lib/utils'
|
|||||||
const Tag = ({ text }) => {
|
const Tag = ({ text }) => {
|
||||||
return (
|
return (
|
||||||
<Link href={`/tags/${kebabCase(text)}`}>
|
<Link href={`/tags/${kebabCase(text)}`}>
|
||||||
<a className="text-sm font-medium text-blue-500 uppercase hover:text-blue-600 dark:hover:text-blue-400">
|
<a className="mr-3 text-sm font-medium text-blue-500 uppercase hover:text-blue-600 dark:hover:text-blue-400">
|
||||||
{text.split(' ').join('-')}
|
{text.split(' ').join('-')}
|
||||||
</a>
|
</a>
|
||||||
</Link>
|
</Link>
|
||||||
|
@ -63,7 +63,7 @@ export default function ListLayout({ posts, title }) {
|
|||||||
{title}
|
{title}
|
||||||
</Link>
|
</Link>
|
||||||
</h3>
|
</h3>
|
||||||
<div className="space-x-3">
|
<div className="flex flex-wrap">
|
||||||
{tags.map((tag) => (
|
{tags.map((tag) => (
|
||||||
<Tag key={tag} text={tag} />
|
<Tag key={tag} text={tag} />
|
||||||
))}
|
))}
|
||||||
|
@ -56,7 +56,7 @@ export default function Home({ posts }) {
|
|||||||
{title}
|
{title}
|
||||||
</Link>
|
</Link>
|
||||||
</h2>
|
</h2>
|
||||||
<div className="space-x-3">
|
<div className="flex flex-wrap">
|
||||||
{tags.map((tag) => (
|
{tags.map((tag) => (
|
||||||
<Tag key={tag} text={tag} />
|
<Tag key={tag} text={tag} />
|
||||||
))}
|
))}
|
||||||
|
@ -30,11 +30,11 @@ export default function Tags({ tags }) {
|
|||||||
{Object.keys(tags).length === 0 && 'No tags found.'}
|
{Object.keys(tags).length === 0 && 'No tags found.'}
|
||||||
{sortedTags.map((t) => {
|
{sortedTags.map((t) => {
|
||||||
return (
|
return (
|
||||||
<div key={t} className="m-2">
|
<div key={t} className="mt-2 mb-2 mr-5">
|
||||||
<Tag text={t} />
|
<Tag text={t} />
|
||||||
<Link
|
<Link
|
||||||
href={`/tags/${kebabCase(t)}`}
|
href={`/tags/${kebabCase(t)}`}
|
||||||
className="mx-1 text-sm font-semibold text-gray-600 uppercase dark:text-gray-300"
|
className="-ml-2 text-sm font-semibold text-gray-600 uppercase dark:text-gray-300"
|
||||||
>
|
>
|
||||||
{` (${tags[t]})`}
|
{` (${tags[t]})`}
|
||||||
</Link>
|
</Link>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user