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

New files not using directory template if files are in folder (in Windows) #3329

Open
LionUCS opened this issue Jun 19, 2024 · 0 comments
Open

Comments

@LionUCS
Copy link

LionUCS commented Jun 19, 2024

Operating system

Windows 10

Eleventy

v2.0.1

Describe the bug

In windows (does not happen on my linux desktop), if input is a folder (instead of ./) pre-existing files, prior to serving, will build properly, but new files will not use the directory template at all.

I also tested in 1.0.1 and 1.0.2 and they work as expected

Reproduction steps

11ty init
input = src
output = public
blog/blog.json
layout = base.njk
blog/newfile.md
[11ty] Writing ./public/blog/newfile/index.html from ./src/blog/newfile.md (liquid)
newfile/index.html is completely blank

Expected behavior

newfile/index.html should have layout markup from 'base.njk'

Reproduction URL

No response

Screenshots

No response

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

No branches or pull requests

1 participant