You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having a one-page that should include some collections. But, I don't want to generate those include files. So I am using .ignore("mypath") like described in the docs. However, when using ignore after or before using collections, those include files will be deleted from the stack of the collection. So, how can I use ignore but still get even ignored files into the stack of collections?
I am aware that this repository is not actively maintained, so in the meantime I will either don't use this plugin or delete the ignore files after using metalsmith.
The text was updated successfully, but these errors were encountered:
Just adding my voice as I'm struggling with this, too. Would like to be able to basically say "Add all of markdown files in folder abcexcept files named blah".
Was trying to employ some of the concepts described here but didn't get anything to stick.
Metalsmith.ignore always executes before any plugins run. Use @metalsmith/remove to remove files after they have been used by other plugins. As for excluding certain files inside a same folder, you would use a negated pattern along with a regular glob pattern, like so: ['abc/**/*.md', '!abc/blah.md']
I am having a one-page that should include some collections. But, I don't want to generate those include files. So I am using
.ignore("mypath")
like described in the docs. However, when usingignore
after or before usingcollections
, those include files will be deleted from the stack of the collection. So, how can I useignore
but still get even ignored files into the stack ofcollections
?I am aware that this repository is not actively maintained, so in the meantime I will either don't use this plugin or delete the ignore files after using metalsmith.
The text was updated successfully, but these errors were encountered: