Skip to content

Commit

Permalink
[templates/d,flowershow#1][s]: exclude .flowershow when searching for…
Browse files Browse the repository at this point in the history
… content.
  • Loading branch information
rufuspollock committed Jun 24, 2022
1 parent 025d2e6 commit ab7db73
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions templates/default/contentlayer.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ const Page = defineDocumentType(() => ({
computedFields,
}));

const contentLayerExcludeDefaults = ['node_modules', '.git', '.yarn', '.cache', '.next', '.contentlayer', 'package.json', 'tsconfig.json']

export default makeSource({
contentDirPath: siteConfig.content,
contentDirExclude: contentLayerExcludeDefaults.concat(['.flowershow']),
documentTypes: [Page],
mdx: {
remarkPlugins: [ remarkGfm ],
Expand Down

0 comments on commit ab7db73

Please sign in to comment.