-
-
Notifications
You must be signed in to change notification settings - Fork 475
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
Src directory structure #1187
Comments
I have very deeply nested folders, depending on the project.
|
Thank you @pdehaan for your time and effort. Cheers. |
https://github.com/pdehaan/11ty-1187 npm run build
> 11ty-1187@1.0.0 build /Volumes/Dev/github/pdehaan/tmp/11ty-1187
> eleventy
Writing www/entries/testimonials/testimonial-2/index.html from ./src/entries/testimonials/testimonial-2.md.
Writing www/entries/testimonials/testimonial-1/index.html from ./src/entries/testimonials/testimonial-1.md.
Writing www/entries/news/news-post-1/index.html from ./src/entries/news/news-post-1.md.
Writing www/entries/news/news-post-2/index.html from ./src/entries/news/news-post-2.md.
Wrote 4 files in 0.14 seconds (v0.11.0)
|
This looks exactly as my output except for no "Writing" lines :-) |
@WebShapedBiz Is the repo public somewhere? I can try cloning and building locally and see if I get the same results. Curious if it's something in your .eleventy.js config file, or maybe an OS issue (I'm on macOS). |
Oh, do you have any other pages on the site, and are they building? |
Yes, I do have 6 other pages and they are building without issue.
Folder structure, like almost always, was created from within VSCode (elementaryOS Linux) so no folder permission issues there. Again, thank you @pdehaan for your time and effort. |
Yeah, that's very odd. I can't think of what else it would be. You could blindly just try adding some "index.njk" or "index.md" files in your tree structure and see if that makes a difference. Although I can't really imagine where something would choke on a directory with only subdirectories and not a directly nested file (and it works for me currently on macOS 10.15.4 w/ eleventy 0.11.0):
Good luck, and let us know if you get it solved. |
Hi.
I'm making a site where users will handle several types of content (news, testimonials, seminars and authors) using NetlifyCMS.
Since I like things to look neat I was trying to put all the user-generated content in one directory called
entries
and each entry type as a separate folder insideentries
like this:Unfortunately, 11ty didn't pick up any of my templates until I moved everything inside the
src
folder like this:Have I configured something wrong or 11ty cannot look inside more than 1 level deep directories inside
src
folder?Cheers.
The text was updated successfully, but these errors were encountered: