-
Notifications
You must be signed in to change notification settings - Fork 655
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
bug - Error: Error building site: failed to render pages: render of "home" failed #206
Comments
I'm getting this as well. |
I have the same problem. This is quite a hurdle to get it running. |
Think this may have to do with logos and/or author images.. instead of /static/images , can you try moving them to /assets/images? Essentially moving site images to: logo: # Currently moved to assets/images/site
main: /images/site/main-logo-scroll.png
inverted: /images/site/main-logo-constant.png
favicon: /images/site/main-logo-favicon.png Above was simply an example of the logos rendering.. However, that applies to the author/background images too, along with others parts of the site such as sections. For posts, image of the post will need to be within the folder of a specific post named as |
@darkwizard242 that worked, thank you!! Is |
@nathanhiemstra - Glad that worked out for you. Ah apologies, if what I said led to confusion. /assets/images/site/ by itself, I don't believe is the global dir for images; but /assets/images/ is likely for all images except those for posts. Examples: References for those images in their specific yaml configuration files doesn't need to include assets in the path. Nevertheless, @hossainemruz is the best person to confirm. |
Yes. Now all images should go into Hugo image processing does not work for the images under |
Sorry but I am still confused about this problem. How can it be fixed now? I mean after the 4 steps to reproduce this problem, which part/file should I modify and how? Could somebody maybe give a direct clue? Thank you so much!!!!! (I am very new to this) |
I'm having the same error. I moved over the assets under "themes, toha, assets, images" to a top level dir "assets/images/site". Please advise
|
@kcisneros could you share the complete error? It should have something further after Additionally, If you copied the site logos from |
hi @darkwizard242 Here's my complete error so far.
The config.yaml (initially .toml) did not have content, so I added in the logos under the site params to the following path, if that's wrong I can update it but I believe the path is right..
|
@kcisneros use, logo:
main: /images/site/main-logo.png
inverted: /images/site/inverted-logo.png
favicon: /images/site/favicon.png |
@hossainemruz Thank you for the response. I updated the paths accordingly and am still getting an error when trying to run hugo server -t toha -w
|
Can you try updating to the latest master? I have pushed some fixes there. Also, please point me to your repository so that I can inspect where the problem is. |
@hossainemruz thank you for taking a look, here's my repo: https://github.com/kcisneros/kcisneros-site I believe I am on latest, I tried a fresh install and set up about two hours ago. Is there a way I can check the hash version locally to ensure I have what's on master? |
Hey @kcisneros. Your site build in my PC without any issue. ╭─ ~/go/src/github.com/hossainemruz/kcisneros-site main ────────────── ✔ 10:37:24 PM
❯ hugo server
Start building sites …
WARN 2021/01/03 22:38:16 found no layout file for "HTML" for kind "taxonomy": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/01/03 22:38:16 found no layout file for "HTML" for kind "taxonomy": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/01/03 22:38:16 found no layout file for "HTML" for kind "home": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
| EN
-------------------+-----
Pages | 3
Paginator pages | 0
Non-page files | 0
Static files | 0
Processed images | 0
Aliases | 0
Sitemaps | 1
Cleaned | 0
Built in 3 ms
Watching for changes in /home/emruz/go/src/github.com/hossainemruz/kcisneros-site/{archetypes,assets}
Watching for config changes in /home/emruz/go/src/github.com/hossainemruz/kcisneros-site/config.yaml
Environment: "development"
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop What hugo version are you using? |
Thank you for the confirmation, I was hoping it wasn't something with my machine, sadly it looks like it may be that.
I updated to Big Sur two days ago, I wonder if there's an incompatibility there. |
I can confirm it also built in hugo ❯ hugo version
Hugo Static Site Generator v0.80.0-792EF0F4 linux/amd64 BuildDate: 2020-12-31T13:37: |
Ok, thank you for confirming. I'll try and narrow down further. |
https://toha-guides.netlify.app/posts/getting-started/prepare-site/ should then also be adjusted or not? |
I have the same problem, I updated today to v2.0.0 and get the following terminal output:
I renamed my static files directory to assets. Here are the files contents: navbar-2.html
imprint.html
privacy.html
|
@serverfriendsorg can you point me to your repository? I believe there are some misconfigurations there. |
@hossainemruz Thanks, I've tried already to find the error by myself but couldn't find it yet. |
@serverfriendsorg I have sent you an MR. That should fix the issue. |
@hossainemruz Thanks, I have commented on your PR seems I don't have permission to merge your changes into my main branch. |
@serverfriendsorg How I can give you permission to merge the MR. I don't see any settings for that. I am not experienced with gitlab. |
@hossainemruz, I got the same issue because of the same problem, I think that you need to mention it somewhere in the docs! |
Yes |
@hossainemruz Sorry for the late response. I was able to merge your MR by starting a new pipeline from the merge request. Thanks for your help, everything is now as it should be. :) |
@hossainemruz @serverfriendsorg is the issue solved? |
@b-reich yes, for me the issue is resolved.
|
@b-reich try updating to the latest release. Let me know if you still face the issue. |
Closing this issue. Feel free to re-open if you still face the issue after updating to the latest version. |
Expected Behavior
Website should render
Current Behavior
Website failed to render
Possible Solution
Steps to Reproduce
hugo new site ./ -f=yaml --force
git init
git submodule add https://github.com/hugo-toha/toha.git themes/toha
hugo server -t toha -w
Detailed Description
The text was updated successfully, but these errors were encountered: