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 7:17 PM, 17th November 2026

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

Keyboard shortcuts

j kNext or previous item in a list; scroll elsewhere
g gGo to the top
GGo to the bottom
n pNext or previous page
/Search, where there is a search box
tSwitch between light and dark
g hGo home
g pGo to posts
g bGo to books
g aGo to archives
← →Previous or next image, in the image viewer (z zooms, Esc closes)
?Show this list, even when disabled