Closed ggodlewski closed 1 year ago
This is not a bug but the expected behavior. Everything in Lume must reside in the src
folder.
If you want to load files from different places, you can configure remote files. For example:
site.remoteFile("_includes/layout.njk", import.meta.resolve("./theme/layout.njk"));
More info here: https://lume.land/docs/core/remote-files/
@oscarotero I really hope lume can have more freedom in path configuration. I can't use a structure like this in lume:
βββ _config.ts
βββ deno.json
βββ src
βββ layouts
β βββ base.njk
β βββ index.njk
βββ pages
βββ index.md
@shuaixr What's the problem with this structure? You can configure Lume to use the src
folder.
Version
1.12.1
Platform
Linux
What steps will reproduce the bug?
I want to keep includes outside of content directory using absolute path. My config is following:
I'm getting error:
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior?
Do not concatenate includes path with content path if it starts with
/
What do you see instead?
I want to be able to set any path in my filesystem for the includes/theme
Additional information
No response