on master help sign in
pages: avoid conflict slug declaration
8c71de9Matilde Park
pages/[slug].js+1−1
@@ -31,7 +31,7 @@ export async function getStaticProps({ params }) {
31}
31}
32
32
33export async function getStaticPaths() {
33export async function getStaticPaths() {
34− const posts = getPostSlugs("/");
34+ const posts = getPostSlugs("/").filter((e) => e !== 'bitcoin.md');
35
35
36 const slugs = posts.map((e) => e.slice(0, -3));
36 const slugs = posts.map((e) => e.slice(0, -3));
37
37