I have a (deeply nested) ./src
directory with a mix of various files, including some *.md
files.
I want Metalsmith to recursively find ONLY the markdown files.
But at the moment the different configs I’ve tried copies ALL files into the static site, or none.
This is what I have at the moment:
{
"source": "./src",
"destination": "static-site",
"clean": true,
"metadata": {
"sitename": "My Static Site & Blog",
"siteurl": "https://example.com/",
"description": "It's about saying »Hello« to the world.",
"generatorname": "Metalsmith",
"generatorurl": "https://metalsmith.io/"
},
"plugins": [
{ "@metalsmith/collections": { "posts": "*.md" } },
{ "@metalsmith/drafts": true },
{ "@metalsmith/markdown": true },
{ "@metalsmith/permalinks": "posts/:title" }
]
}