on master help sign in
pages/guides: filter out special cased app page
commit1ba0e8dac9c388d1226769c117bcb678e798f78f authorMatilde Park <matilde.park@urbit.org> dateFri 29 Apr 2022, 13:19 (5 years ago) parent78b45fb
1 file changed+5−1
pages/guides/[slug].js+5−1
pages/guides/[slug].js+5−1
@@ -58,8 +58,12 @@ export async function getStaticProps({ params }) {
5858export async function getStaticPaths() {
5959 const posts = getAllPosts(["slug", "date"], "guides", "date");
6060
61+ const noApplications = posts.filter(
62+ (e) => e.slug !== "installing-applications"
63+ );
64+
6165 return {
62− paths: posts.map((post) => {
66+ paths: noApplications.map((post) => {
6367 return {
6468 params: {
6569 slug: post.slug,