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
Hugo 0.11 can't see config file with non-default name #328
Comments
Just wanted to chime in and say the same thing, I have 0.11 on OS X 10.9.3 and I have the same thing. Would be great if this could be fixed soonish. Thanks! :) |
Seems I spoke too quickly, I think I have figured it out. When I run it as @mdwhatcott mentions it throws an error:
However, if you run
I confirmed this workes with both a YAML and a TOML file, and it works. Hope it helps. 👍 |
Indeed @sondr3 is correct! This seems weird, and is still a breaking change, but I'll now move forward with Hugo 0.11. Thanks for discovering the workaround! |
I am having a similar problem in windows 8.1 64 bit after creating a new project with hugo new site /path/to/.site cd to new site path run hugo new about.md it gives the following error messaage $ hugo new about.md |
This is definitely a bug. Will be fixed soon. |
@spf13 - Cool, thanks! |
@spf13 Looking forward to it, for the time being i wont be using hugo and instead try out Frog static site generator. |
When I use |
You need to run hugo in a folder with a config.{yaml, toml, json} file |
I did but I updated my comment with the second error. Did you see that? That is an old version of hugo that it's pointing to. I'm sorry I thought it would use the hugo binary in my current directory. |
Weird hugo is looking into a path for hugo that isn't in my path variable. Now I'm just confused. Any idea's on how to troubleshoot? The error is saying |
are you missing the |
No it's there. But why is hugo using the wrong version? How do I tell Hugo to use the current version. I've tried updating my environmental variable. |
I updated the old path with the new Hugo binary 0.13 and now I get a different error when I use |
Inside /content, probably. |
Aha I found it. It was hidden from me. This file was created by Google drive sync. @spf13 What should I do about this? |
I still have a problem with config files with non-standard names. When I use it with the "hugo new" command, I get errors about not being able to find the "themes" directory. Specifying the "themes" directory in the config file or in the command line doesn't make any difference. When I divide a hugo site directory into multiple directories and use a config file with a non-standard name, same thing. I have errors about not being able to find the "themes" directory. |
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. |
I've separated my sites into a few separate repositories. The repository in charge of rendering and publishing my sites has all my config files, named after the site they configure. These config files point to the other repositories which contain the markup/templates and content. Up until now (0.11) I've used the --config flag to point to the correct config file but it's not working anymore:
Renaming the config file to
config.yaml
makes it work again but this appears to be a breaking change from 0.10.The text was updated successfully, but these errors were encountered: