You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Error: Failed to render for file.html
Caused by:
Layout default.liquid does not exist (referenced in file.html).
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:
There seems to be an issue with pathing/defaults in general. I just had a similar expierience while trying to use a secondary _cobalt_build.yml with the gitlab-cicd/pages example on the current release (cobalt-bin 0.19.2)
It does seem that I cannot convince the source configuration parameter in any yml outside of the default (_cobalt.yml) to just use "." or "this directory"
I am just doing this in order to be able to easily workaround the fact that site.sitemap set to anything will prevent cobalt serve to even come up.
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: