Skip to content

Commit

Permalink
update context
Browse files Browse the repository at this point in the history
  • Loading branch information
gregrickaby committed Oct 23, 2023
1 parent be72a11 commit 9419c12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const revalidate = 60
async function fetchData(slug: string) {
// If the slug is 'blog', fetch all posts.
if (slug === 'blog') {
return {posts: await getAllPosts(), context: 'posts'}
return {posts: await getAllPosts(), context: 'blog'}
}

// If the slug is 'books', fetch all books.
Expand Down

0 comments on commit 9419c12

Please sign in to comment.