upstream #1

Merged
jblu merged 1007 commits from upstream into main 2024-11-04 22:35:57 -06:00
4 changed files with 5 additions and 5 deletions
Showing only changes of commit e19df894b6 - Show all commits

View File

@ -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>

View File

@ -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} />
))} ))}

View File

@ -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} />
))} ))}

View File

@ -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>