-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
Regression with "hugo new" from a theme #9129
Comments
FYI (in case it gives some clues to check with the listed issue) I'm working on a minimal reproducible test case for a related (but different) bug with |
PrefaceIt turns out the case I have is the same bug. I now have a repo at https://github.com/danielfdickinson/hugo-mounted-content-subdir-bug-0-89 for demonstrating the issue. Seeing the issue using the repository
The relevant config:From: to the end of that file. [module]
[[module.mounts]]
source = 'content'
target = 'content'
[[module.mounts]]
source = 'static'
target = 'static'
[[module.mounts]]
source = 'layouts'
target = 'layouts'
[[module.mounts]]
source = 'data'
target = 'data'
[[module.mounts]]
source = 'assets'
target = 'assets'
[[module.mounts]]
source = 'i18n'
target = 'i18n'
[[module.mounts]]
source = 'archetypes'
target = 'archetypes'
[[module.imports]]
ignoreConfig = true
ignoreMounts = true
path = "github.com/danielfdickinson/hugo-debug-tables"
[[module.imports.mounts]]
source = "static"
target = "static"
[[module.imports.mounts]]
source = "layouts"
target = "layouts"
[[module.imports.mounts]]
source = "data"
target = "data"
[[module.imports.mounts]]
source = "assets"
target = "assets"
[[module.imports.mounts]]
source = "README.md"
target = "assets/README-debug-tables.md"
[[module.imports.mounts]]
source = "i18n"
target = "i18n"
[[module.imports.mounts]]
source = "archetypes"
target = "archetypes"
[[module.imports]]
path = "github.com/danielfdickinson/hugo-minimal-test"
[[module.imports.mounts]]
source = "static"
target = "static"
[[module.imports.mounts]]
source = "layouts"
target = "layouts"
[[module.imports.mounts]]
source = "data"
target = "data"
[[module.imports.mounts]]
source = "assets"
target = "assets"
[[module.imports.mounts]]
source = "i18n"
target = "i18n"
[[module.imports.mounts]]
source = "archetypes"
target = "archetypes"
[[module.imports]]
path = "github.com/danielfdickinson/netlify-new-oldnew-mashup/exampleSite"
ignoreConfig = true
ignoreImports = true
[[module.imports.mounts]]
source = "content/docs"
target = "content/test-docs" |
Oh, and that was using Hugo 0.89.1 on WSL2 on Windows 10. |
Thanks @danielfdickinson - confirming I have the same issue. I'm using the FeelIt theme |
@bep Here's another set of step-by-step instructions to reproduce the bug with a new Hugo site:
I'm running hugo v0.89.0+extended darwin/amd64 and go1.17.2 darwin/amd64 on macOS 10.15.7 Catalina. Hope this helps! |
OK, I will fix this -- but the workaround is to include the "content" part in the command, e.g.: hugo new content/posts/test.md |
With theme and project with content directories and command on the form `hugo new posts/test.md`. Fixes gohugoio#9129
First, thank you for the fix! A note though:
For me that just added |
With theme and project with content directories and command on the form `hugo new posts/test.md`. Fixes gohugoio#9129
With theme and project with content directories and command on the form `hugo new posts/test.md`. Fixes #9129
Thanks, @bep, that did the trick! ✨ |
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. |
See https://discourse.gohugo.io/t/can-you-use-markdown-files-for-default-content-in-a-theme/35447
The text was updated successfully, but these errors were encountered: