Exclude Files and Folders from Front Matter CMS

Show QR code Hide QR code
QR code linking to https://navendu.me/tils/12-11-24-exclude-files-and-folders-from-front-matter-cms/

To prevent Front Matter CMS from including specific files and folders, you can provide the paths to be excluded in excludePaths under frontMatter.content.pageFolders:

{
  "frontMatter.content.pageFolders": [
    {
      "title": "Posts",
      "path": "[[workspace]]/content/posts",
      "previewPath": "posts",
      "contentTypes": ["Post (default)"],
      "excludePaths": [
        "_*.*" // Exclude all files starting with an underscore
      ]
    }
  ]
}

I use this to exclude _index.md files from Front Matter.

Webmentions • Last updated at 6:56 AM, 10th November 2025

Have you written a response to this? Send me a webmention by entering the URL.