cobalt.rs icon indicating copy to clipboard operation
cobalt.rs copied to clipboard

Cobalt cannot find layout no matter where it is if src and destination specified in _cobalt.yml

Open davidthewatson opened this issue 1 year ago • 3 comments

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:

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!

davidthewatson avatar Feb 19 '24 00:02 davidthewatson