From 4120bd98f4ace296fc4e2f1f0e2137241344f3d4 Mon Sep 17 00:00:00 2001 From: Mike Bifulco Date: Thu, 12 Dec 2024 07:34:14 -0500 Subject: [PATCH] test: is this the problem? --- src/pages/tags/index.tsx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/pages/tags/index.tsx b/src/pages/tags/index.tsx index 6a316908..152f83f5 100644 --- a/src/pages/tags/index.tsx +++ b/src/pages/tags/index.tsx @@ -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(), }, }; }; @@ -30,7 +32,7 @@ const TagsPage: NextPage = ({ tags }) => { tags used on articles across the site
- {tags?.map((tag) => ( + {tags.map((tag) => ( {tag}