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
If you use vim to edit a file in _layouts, Cobalt processes vim's binary .<FILE>.swp swap file(s) as if they were liquid templates, and cobalt serve complains about their content:
Building from `/tmp/myBlog` into `/tmp/.tmpxwRaPV`
WARN: Failed to load layout .default.liquid.swp
As @lazysoundsystemcommented on 556, I think it happens because fn find_layouts() sets ignore_hidden(false) (I haven't tried their one-line fix yet). Processing files is different from serving pages, but it seems unnecessary and counterintuitive that Cobalt supports templates files starting with . or _ in _layouts.
The text was updated successfully, but these errors were encountered:
(This is similar to issue #556)
If you use vim to edit a file in
_layouts
, Cobalt processes vim's binary.<FILE>.swp
swap file(s) as if they were liquid templates, andcobalt serve
complains about their content:As @lazysoundsystem commented on 556, I think it happens because
fn find_layouts()
setsignore_hidden(false)
(I haven't tried their one-line fix yet). Processing files is different from serving pages, but it seems unnecessary and counterintuitive that Cobalt supports templates files starting with.
or_
in_layouts
.The text was updated successfully, but these errors were encountered: