metalsmith / metalsmith/collections

"pattern:" does not work in CLI

Open
#18 14 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
106
Forks
64
PR merge metrics
No merged PRs in 30d

Description

Somehow i can only add files to my collection by setting the metadata collection in the file.
I can not select any files with the pattern attribute like following:

``` json
"metalsmith-collections": {
"articles": {
"pattern": "*.md"
}
}
```

or

``` json
"metalsmith-collections": {
"articles": "*.md"
}
```

This will only give me an empty collection in the template

Contributor guide

No contributing guide indexed for this repository

Research direction

No source file or test is named in the issue. Start by reproducing the CLI configuration with both pattern forms and inspect how the collection metadata is parsed; done means matching .md files appear in the articles collection instead of an empty collection.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.