-
Notifications
You must be signed in to change notification settings - Fork 162
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
Layout Broken on Netlify #108
Comments
Could you please share your build settings from netlify? I can't even deploy the site because deploy is failing |
I have the same issue. Site looks fine locally when using Also when testing locally with: See screenshot from Netlify build that is similar to the OP. Netlify logs attached. Local Hugo version: Followed guide and also tried a few other things with no luck. Any idea how to fix this? Thanks |
Has this already been solved? I am not using Netlify, but I have the same layout issue. Local server works fine, but after deployment the blog and tags pages looks exactly like the screen in this issue. |
Not for me. I did some digging and think I know what the issue is but switched theme in the end. I did have the same issue with the theme I use now, after finding the same thing. I think it's because when we test locally the When I deployed I could see that the code was looking for the style sheet at Note that I have not tested this and only based on what I think the solution is and that by using the correct |
Thank you for this extensive reply.
Besides that, even when the style works correct, the links seem to lose the protocol switching to http instead of https. This last thing might be a setting at my providers system, but I am not sure. Only this website has this behaviour. I will keep investigating this. I'll keep you posted. |
Okay... I know proved it is the theme, or Hugo. |
I finally cracked it!! In the header partial you have to add a slash after the language links. See lines 47 and 65 in https://gitlab.com/janware/papasmurf.nl/-/blob/main/layouts/partials/header.html Besides that, in the config.toml,make sure to end all menu urls with a slash. That's it! My site works: papasmurf.nl Refer to my gitlab source to see the details |
Hey, Great! Glad you have cracked it and all working now. Hopefully anyone else with the same issue can get it working using this thread. |
Thanks, guys! Just found the theme and had the same issue. So, to summarize:
@apvarun, this might be worth a fix, right? |
@jmflaherty definitely! I believe the change should only be the trailing slash right? and not the styles/classnames. |
When running a local server on my machine the site looks fine, but when I deploy it to my domain using Netlify, the layout is completely messed up. I've tried troubleshooting it for a while but can't figure out what the issue is. I am using the build command provided in the docs on Netlify and nothing is different in the code between my machine and what I have pushed to Netlify. I looked through the deploy logs on Netlify and there are no errors. I am using Hugo version 0.111.3 in both locations.
The text was updated successfully, but these errors were encountered: