Skip to content

Commit

Permalink
feat(plugin-git): do not pass unneeded data to client
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Mar 25, 2024
1 parent 014780a commit 520a3b6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions plugins/plugin-git/src/node/gitPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,12 @@ export const gitPlugin =
page.data.git.contributors = await getContributors(filePaths, cwd)
}
},

// remove `gitInclude` from frontmatter
onInitialized: (app) => {
app.pages.forEach((page) => {
delete page.frontmatter.gitInclude
})
},
}
}

0 comments on commit 520a3b6

Please sign in to comment.