Skip to content

Commit

Permalink
Merge pull request #68 from ericjiang97/preview
Browse files Browse the repository at this point in the history
fix slug on category page
  • Loading branch information
ericjiang97 authored Aug 16, 2020
2 parents 3bc8048 + c190bf2 commit e6eb0e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/blog/category/[category].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export async function getStaticProps({ ...ctx }) {
const filePath = post.split('/');
const slug = filePath[filePath.length - 1].replace('.md', '');

filteredPosts.push({ frontmatter: frontmatter.data as BlogPostFrontmatter, slug: `/blog/${slug}` });
filteredPosts.push({ frontmatter: frontmatter.data as BlogPostFrontmatter, slug: `${slug}` });
}
}

Expand Down

1 comment on commit e6eb0e3

@vercel
Copy link

@vercel vercel bot commented on e6eb0e3 Aug 16, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.