-
-
Notifications
You must be signed in to change notification settings - Fork 265
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
Icons don't show in Demo and on example page #260
Comments
Hi - I just received some support on the hugo-foums. When opening the Demo file in Chrome, the error message in the developer console is this:
I have the same on my page as well:
How can I fix this? |
@GITchristoph , the mixed content issue was fixed after I changed the url on the config.toml file from example.com. I still couldn't fix the favicon issue though. Let me no if you have any progress on that. |
@RashikShahjahan , I could not figure out how to fix this myself yet. I am also a newbie to this in general and I am not sure yet how to start looking for the issue. |
Could it have something to do with this inside style.sass?
|
I can see the thumbs up but I unfortunately do really not know what I should do next, sorry! :-) |
You can put favicon under static/img/favicon.ico for example and reference it like this in config.toml [params] |
Also try to do hard refresh (ctrl + F5 on windows for example) so it can load fresh assets |
Hi @ParagRaut What's the issue are the icons from twitter, facebook, etc. Please see also picture below with what I mean. |
True, I observed this as well. I think it is not propely hosted or something, but if you go to netlify app for same theme there you will see everything rendering correctly. https://hugo-introduction.netlify.com/ |
Hi @ParagRaut |
@GITchristoph , any luck? |
@RashikShahjahan Does that make sense? |
- Update font path in style.sass to use urls.Parse - No sites should be affected if their baseURLs are correct - Address #260
@GITchristoph I can see the problem in the demo site, and I just made a fix for it. Please pull the theme again. If this does not help you, would you be able to share your repository with us so we can try to diagnose the issue further? |
Thank you - I will but need a bit of time to get to it. |
@victoriadrake , I made the changes in the sass file. It still doesn't work. Here's my repo:https://github.com/RashikShahjahan/Website_Personal |
@RashikShahjahan when I visit your page, I see this in the console: It seems "example.com" is still being used. Did you remember to rebuild your site? |
That's strange. I thought I got rid of this error after I changed the url in config.toml. @victoriadrake |
How are you rebuilding your site? If with Netlify, is your Netlify configuration set up to redeploy when a change is pushed? |
@victoriadrake it's with Netlify. Yes the site redeploys whenever I push a change. |
@victoriadrake , do I need to change the url anywhere other than config.toml? |
It would depend on your settings, but I don’t think so. Can you find an option to “Clear cache and deploy”? It should be in a drop-down menu on the “Deploy site” button. That might help. |
@victoriadrake , I tried that. Didn't help. Could the build command be an issue? |
It looks like this has been idle a while, so I am marking it as stale. Remove the label or comment if this issue should remain open. |
Guess this issue has not been fixed :( |
I see your 7167496 might fix this for the demo site. We'll be able to see after Hugo's themes site's next deploy. |
same issue here. it works on my localhost but not when I push it and run it on Amplify |
workaround: copy the fotns folder from your example folder to the root of your project 🎉 |
@joelgrimberg , I don't see a fonts folder under exampleSite. |
I copied the complete /themes/introduction/static/fonts folder to the root of my project ( so that in my root I will find the '/fonts/..' - folder |
It looks like this has been idle a while, so I am marking it as stale. Remove the label or comment if this issue should remain open. |
it's still an issue; icons are still not showing: |
Bad bot. |
It should be fixed with pull request #285. The demo page is still broken because it is not build with the extended version of hugo and PostCSS. Source: Hugo themes readme. Pull request #286 contains updated resources and the next update is proposed on this Friday. |
It looks like this has been idle a while, so I am marking it as stale. Remove the label or comment if this issue should remain open. |
This is fixed now! |
Hello Victoria
Thanks for the nice theme.
I would like to use it to start working with Hugo.
There seems to be one issue with the demo and the example page, which is that the favicons don't show up.
When you open the demo page, then you will see directly that the favicons for twitter, linkedin etc. right below "I'm a theme for Hugo"don't show up.
https://themes.gohugo.io/theme/hugo-theme-introduction/
Can you tell me what you think causes this so I can fix it in my example page?
Maybe you also want to fix it in the demo page?
Hope this all makes sense and thanks a lot in advance for your help,
Greetings, Chris
The text was updated successfully, but these errors were encountered: