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

Local module: file does not exist #6722

Closed
regisphilibert opened this issue Jan 7, 2020 · 4 comments
Closed

Local module: file does not exist #6722

regisphilibert opened this issue Jan 7, 2020 · 4 comments
Labels

Comments

@regisphilibert
Copy link
Member

regisphilibert commented Jan 7, 2020

Reading this thread I think the setup form this test repo should work. Yet I get the following error:

Error: add site dependencies: load resources: loading templates: walk: open "debug" (""): file does not exist

What it does is try and load a module whose files are stored locally (in the themes directory as mentioned in the doc) and use the mounts directive to assign its directory to Hugo's filesystem.

module:
  imports:
    - path: imgix

And from the module config.yaml:

module:
  hugoVersion:
    extended: false
    min: "0.62.2"
  mounts:
    - source: debug
      target: layouts/partials/debug
@bep
Copy link
Member

bep commented Jan 7, 2020

I don't remember any tests for custom mounts for /themes folders, so I guess that is not supported.

Why not move your debug folder below layouts/partials where it belongs. I don't see what you save by your current setup.

@regisphilibert
Copy link
Member Author

regisphilibert commented Jan 7, 2020

Why not move your debug folder below layouts/partials where it belongs.

Then it's just a regular theme, bound to follow a Hugo Project's file structure. I wish I could have a module (which will later be move to its own repo after development) from which I can handpick various files/directory.
I was trying to replicate what you achieved in https://github.com/bep/portable-hugo-links

@regisphilibert
Copy link
Member Author

Closed in favor of #6730

@github-actions
Copy link

github-actions bot commented Feb 9, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants