Browse Source

remove link to self on project page

master
f0x 1 year ago
parent
commit
027256cd5d
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/graphql/index.js

+ 1
- 1
src/graphql/index.js View File

@@ -29,7 +29,7 @@ module.exports = {
29 29
       pages: () => pages.filter(p => p.frontmatter.nolink != true),
30 30
       pageByIndex: args => pages[args.index],
31 31
       pageByTitle: args => pages.filter(p => p.frontmatter.tile === args.title),
32
-      projectPages: () => pages.filter(p => p.relativePath.startsWith("/projects/") && !p.relativePath.startsWith("/projects/index.html")),
32
+      projectPages: () => pages.filter(p => p.relativePath.startsWith("/projects/") && p.relativePath != "/projects/"),
33 33
       posts: args => pages.filter(p => p.frontmatter.type === 'blog')
34 34
     }
35 35
   }

Loading…
Cancel
Save