pages: avoid conflict slug declaration
commit8c71de9d606cb18a3e2c777f19940d3e4e1b72d2
authorMatilde Park <matilde.park@urbit.org>
dateTue 15 Nov 2022, 18:10 (4 years ago)
parent5f97a5d
pages/[slug].js+1−1
@@ -31,7 +31,7 @@ export async function getStaticProps({ params }) {
3131}
3232
3333export async function getStaticPaths() {
34− const posts = getPostSlugs("/");
34+ const posts = getPostSlugs("/").filter((e) => e !== 'bitcoin.md');
3535
3636 const slugs = posts.map((e) => e.slice(0, -3));
3737