-
-
Notifications
You must be signed in to change notification settings - Fork 346
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
Possible issue with hugo module installation that appeared within the past few days #593
Comments
Here's the successfully working version using git submodules, rather than hugo submodules. # Create a new Hugo site
hugo new site gitsubmodule3
# Navigate to the newly created site's directory
cd gitsubmodule3
# Initialize git in the directory
git init
# Add the git submodule for the theme
git submodule add -b stable https://github.com/jpanther/congo.git themes/congo
# Remove the hugo.toml file
rm hugo.toml
# Copy the theme's config files to the site's config directory
mkdir -p config/_default
cp themes/congo/config/_default/*.toml config/_default
# Add the theme name to the config file
echo 'theme = "congo"' > temp
cat config/_default/config.toml >> temp
mv temp config/_default/config.toml
# Create a new post
hugo new posts/_index.md
# Set the post to not be a draft and add a title
sed -i '' 's/draft: true/draft: false/g' content/posts/_index.md
echo -e "\n\n# Home" >> content/posts/_index.md
# Start the Hugo server
hugo server And the corresponding zsh one liner hugo new site gitsubmodule5 && cd gitsubmodule5 && git init && git submodule add -b stable https://github.com/jpanther/congo.git themes/congo && rm hugo.toml && mkdir -p config/_default && cp themes/congo/config/_default/*.toml config/_default && echo 'theme = "congo"' > temp && cat config/_default/config.toml >> temp && mv temp config/_default/config.toml && hugo new posts/_index.md && sed -i '' 's/draft: true/draft: false/g' content/posts/_index.md && echo -e "\n\n# Home" >> content/posts/_index.md && hugo server |
Hm. As an update, I tried this on my other machine and was unable to replicate the issue. I used this command on my other machine:
Any suggestions as to how to debug the issue? |
Thanks for the issue report, @TikkunCreation. I wonder if this is because Hugo is caching the module and so it's not updating it correctly when you re-run your script. Have you tried using the command |
You are 100% correct. Doing the following fixed the issue (and as expected it fixed it across all my congo sites, not just the one in the current directory):
I'm going to leave this issue open in case you want to add anything to the docs, or any kind of fix to detect when this is happening. Feel free to close it at your preference. |
This issue has been automatically marked as stale because it has not had any recent activity. |
This issue recurs frequently. It is always solvable with It may be good to add that to the docs somewhere. |
This issue has been automatically marked as stale because it has not had any recent activity. |
Where would you look for this information in the docs if you had this issue? Would it make sense to add a comment in the installation section? Or does it make more sense in deployment? It is briefly referenced in the upgrade guide but it's not the most obvious place to find it if you're coming to Congo as a new user. |
I'm not sure, I'd likely: google 'hugo WARN found no layout file for "html" for kind "taxonomy": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.' google 'hugo congo WARN found no layout file for "html" for kind "taxonomy": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.' (without quotes) And hope that it comes up from that. With issues I generally don't browse in the docs, I'll trust that a keyword search will surface it |
That's what I would do too. I think the issue here is largely to do with how the |
I've now made an update to the docs to reference the |
Issue description
I think a downstream package might've introduced some kind of issue in the past few days.
This set of commands worked fine for me on Sunday 25th June, but not today Wed 28th June.
To reproduce the issue:
And here is the corresponding Zsh one-liner:
Note that using git submodules still works fine.
Can someone who is reading this please follow my steps and comment whether you run into the same issue? (Congo theme isn't downloaded/loaded)
Theme version
v2.6.1
Hugo version
hugo v0.114.1+extended darwin/arm64
Which browser rendering engines are you seeing the problem on?
URL to sample repository or website
No response
Hugo output or build error messages
The text was updated successfully, but these errors were encountered: