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

Cobalt processes vim .swp files in _layouts as templates, and warns #1198

Open
skierpage opened this issue Jul 12, 2024 · 0 comments
Open

Cobalt processes vim .swp files in _layouts as templates, and warns #1198

skierpage opened this issue Jul 12, 2024 · 0 comments

Comments

@skierpage
Copy link

(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, and cobalt serve complains about their content:

Building from `/tmp/myBlog` into `/tmp/.tmpxwRaPV`
WARN: Failed to load layout .default.liquid.swp

As @lazysoundsystem commented 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant