Skip to content
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

Content type generator pulls in data from unexpected directory with a common prefix #475

Open
jmikola opened this issue Jan 20, 2023 · 1 comment

Comments

@jmikola
Copy link

jmikola commented Jan 20, 2023

In a local project, I happened to create a "posts2" content type alongside the stock "posts" type:

sculpin_content_types:
    posts:
        type: path
        path: _posts
        singular_name: post
        layout: post
        enabled: true
        permalink: post/:filename/
    posts2:
        type: path
        path: _posts2
        singular_name: post2
        layout: post2
        enabled: true
        permalink: post2/:title

When rendering my index page, I found that the "posts" content generator pulled in content from both the "_posts" and "_posts" directories. I believe this is caused by dflydev/dflydev-util-antPathMatcher#1, so there may not be anything to fix in Sculpin directly.

If/when that issue is resolved and released, this issue can serve as a reminder to bump the upstream dependency.

@simensen
Copy link
Member

dflydev/ant-path-matcher v1.0.4 is now available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants