-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relative path for partials/pattern #43
Comments
can you provide additional informations how you set it up? |
Here is extract of my config:
The partials is relative to the where I ran the build from while pattern is relative to the default Metalsmith folder, which is |
That's intentional. The reason being that you don't want your partials to end up in your
I understand how this can be confusing, because your approach works, as you're filtering out the partials with the pattern, but that is by no means the recommended approach. The way this is meant to be used is by putting your partials outside of |
@doodzik Maybe we should document this more clearly in the readme. I've now come across several cases where people are putting layouts and partials in src, which in my opinion isn't something we want to support. |
Thanks for the explanation, I'm used to putting all my source code under src so I include partials in there too, as you noticed I keep my pages separate from my partials. |
I think it makes sense to separate them, but we definitely want to add that to the readme. |
@ismay should we do it as a point in a faq? |
Hmm yeah, we could also add it to the |
It looks like partials is relative to root, while pattern is relative to src
The text was updated successfully, but these errors were encountered: