-
Notifications
You must be signed in to change notification settings - Fork 96
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
Cobalt cannot find layout no matter where it is if src and destination specified in _cobalt.yml #1168
Comments
Have a reproduction case you can point me to? |
There seems to be an issue with pathing/defaults in general. I just had a similar expierience while trying to use a secondary It does seem that I cannot convince the I am just doing this in order to be able to easily workaround the fact that You can reproduce this by: # init fresh project
$ cobalt init
Created new project at ./
$ ls
_cobalt.yml _defaults index.md _layouts posts
# just copy the working config to a new one in the same dir
$ cp _cobalt.yml _cobalt_testing.yml
# and voila, it's borked ...
$ cobalt serve -c _cobalt_testing.yml
Building from `` into `/tmp/.tmpvZWt5b`
Watching "" for changes
Serving /tmp/.tmpvZWt5b through static file server
Server Listening on http://localhost:1024
Ctrl-c to stop the server
Error: Failed in processing source
Caused by:
No such file or directory (os error 2)
|
@matschundbrei v0.19.3 is out with a fix for that case. However, without a reproduction case for @davidthewatson's problem, its hard to say if that fixed it or if there are other problems. |
I'm using cobalt 0.19.0 built from cargo.
I have a cobalt site generated successfully with the default configuration of _cobalt.yml where src lives in the main project directory and destination is set to _site with layouts in _layouts as in _layouts/default.liquid. That works fine.
However, if I set src and destination in _cobalt.yml, cobalt seems unable to find the frontmatter-specified layout, no matter where it lives: same current directory as the page or post, the _layouts directory, relative path set in the frontmatter layouts directive, nothing.
No matter the configuration, I get an error such as:
I wish I could find a work-around but so far, no luck. I tried setting verbosity on cobalt build but none of the regex logs seemed causal with respect to what must-be malformed search-path for liquid templates.
Thanks!
The text was updated successfully, but these errors were encountered: