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

Pages will not generate if your _layouts directory has been changed/moved #86

Open
lfracalossiFA opened this issue Oct 25, 2020 · 3 comments

Comments

@lfracalossiFA
Copy link

I've inherited a Jekyll codebase where the _layouts directory has been moved to _config/_layouts using the layouts_dir: _config/_layouts parameter in config.yml. Without creating a new _layouts directory at the root of my site, the page generation will always fail at this step:

Error reading file /Users/lisefrac/jekyll_vanilla/_layouts/profile.html: No such file or directory @ rb_sysopen - /Users/lisefrac/jekyll_vanilla/_layouts/profile.html

I'm surprised the generator isn't querying the value of the layouts_dir parameter rather than the default site config, as I would expect that moving one's _layouts directory is a rather common use case.

(FWIW, I tested this both on a vanilla Jekyll 3.9.0 install, as well as my inherited codebase).

I'd rather not have to create two separate _layouts directory to get this plugin working. Nor do I feel confident enough in my Ruby skills to change the generator myself. Is there a way to fix this?

@lfracalossiFA
Copy link
Author

For now I am working around this using symlinks to _config/_layouts, but it would be nice if I didn't have to do this.

@avillafiorita
Copy link
Owner

thanks for the report, it is certainly something to deal with in the next release (If I get it right, there is a specific Jekyll parameter the plugin should be looking at, rather than assuming layouts live in the _layouts dir).
thanks for reporting the issue.

@lfracalossiFA
Copy link
Author

Awesome, good to hear. Thanks for this plugin, btw! It took a little configuring, but it's making the work of creating a ton of pages much easier.

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

2 participants