diff --git a/pages/category/[category].js b/pages/category/[category].js index eec3196a..ab07f1f5 100644 --- a/pages/category/[category].js +++ b/pages/category/[category].js @@ -7,18 +7,18 @@ import React from 'react' import CategoryList from '@/components/CategoryList' import { getNotionPageData } from '@/lib/notion/getNotionData' -export default function Category ({ tags, posts, category, categories }) { +export default function Category ({ tags, allPosts, filteredPosts, category, categories }) { const meta = { title: `${BLOG.title} | ${category}`, description: BLOG.description, type: 'website' } - return + return
- +
} @@ -37,7 +37,8 @@ export async function getStaticProps ({ params }) { return { props: { tags, - posts: filteredPosts, + allPosts, + filteredPosts, category, categories }, diff --git a/pages/tag/[tag].js b/pages/tag/[tag].js index 603891a6..0d7048da 100644 --- a/pages/tag/[tag].js +++ b/pages/tag/[tag].js @@ -6,18 +6,18 @@ import BlogPostListScroll from '@/components/BlogPostListScroll' import TagList from '@/components/TagList' import { getNotionPageData } from '@/lib/notion/getNotionData' -export default function Tag ({ tags, posts, currentTag, categories }) { +export default function Tag ({ tags, allPosts, filteredPosts, currentTag, categories }) { const meta = { title: `${BLOG.title} | #${currentTag}`, description: BLOG.description, type: 'website' } - return + return
- +
} @@ -36,7 +36,8 @@ export async function getStaticProps ({ params }) { return { props: { tags, - posts: filteredPosts, + allPosts, + filteredPosts, currentTag, categories },