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
Cast error for hugo new blabla/hello.md
with custom theme (due to empty archetype file)
#315
Comments
Actually, it's not a bug, it's a feature™. Running the
|
Hi @Diti, Thank you for your bug report. Actually, I think something could be done to improve the behaviour.
Reason?
in my I think one or both of the following should be done:
|
hugo new blabla/hello.md
with custom themehugo new blabla/hello.md
with custom theme (due to empty archetype file)
I'm getting the same error when copying/pasting the code from Step 1 here: http://gohugo.io/content/archetypes/ into a new document. Saving to archetypes/default.md, then trying to create new post/newfrontmatter.md gives me the same error. I also heeded the caveats, and added an extra line after the end +++ hoping that would work, but it doesn't. (I don't seem to be getting an EOF error, rather a cast error as above) FWIW, I've tried this on a linux machine (emacs), and on a mac (using BBEdit) Both are using standard unix LF for newlines. |
I'm getting this error as well with a custom theme. I have a valid archetype file (+++ fences and an extra empty line) in the theme. |
I ran into this problem too. I just deleted the file. I don't think |
To fix the cast error, create a minimal default.md in the archetype folder.
fixes #315 To fix the cast error, create a minimal default.md in the archetype folder.
error when trying to create new post - gohugoio/hugo#315
fixes gohugoio#315 To fix the cast error, create a minimal default.md in the archetype folder.
fixes gohugoio#315 To fix the cast error, create a minimal default.md in the archetype folder.
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. |
Hello!
After creating a new theme and attempting to use Hugo's builder for content, I get the following error:
ERROR: 2014/06/01 Unable to Cast <nil> to map[string]interface{}
.You can replicate the problem with Hugo v0.11 and the commands below.
Am I doing anything wrong? I think this may be a bug.
The text was updated successfully, but these errors were encountered: