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}