Skip to content

Commit

Permalink
test: is this the problem?
Browse files Browse the repository at this point in the history
  • Loading branch information
mbifulco committed Dec 12, 2024
1 parent 869c488 commit 4120bd9
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/pages/tags/index.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
// Components
import type { GetStaticProps, NextPage } from 'next';

// import { getAllTags } from '@lib/tags';

import { Heading } from '@components/Heading';
import NewsletterSignup from '@components/NewsletterSignup/NewsletterBannerFancy';
import { Heading } from '../../components/Heading';
import SEO from '../../components/seo';
import Tag from '../../components/tag';
import { getAllTags } from '../../lib/tags';
import SEO from '@components/seo';
import Tag from '@components/tag';

export const getStaticProps: GetStaticProps = async () => {
const tags = await getAllTags();
// const tags = await getAllTags();
return {
props: {
tags: Array.from(tags.allTags).sort(),
tags: ['nextjs'],
// tags: Array.from(tags.allTags).sort(),
},
};
};
Expand All @@ -30,7 +32,7 @@ const TagsPage: NextPage<TagsPageProps> = ({ tags }) => {
tags used on articles across the site
</Heading>
<div className="mb-20 flex flex-row flex-wrap gap-2 text-xl">
{tags?.map((tag) => (
{tags.map((tag) => (
<Tag key={`tag-cloud-${tag}`} url={`/tags/${tag}/`}>
{tag}
</Tag>
Expand Down

0 comments on commit 4120bd9

Please sign in to comment.