Skip to content
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

Social links are not displayed on site #180

Open
TimothyElder opened this issue Sep 25, 2021 · 1 comment
Open

Social links are not displayed on site #180

TimothyElder opened this issue Sep 25, 2021 · 1 comment

Comments

@TimothyElder
Copy link

TimothyElder commented Sep 25, 2021

I have generated my site and when I open the site from the hugo server, my social links appear just as they should, but on the rendered site, the social links disappear. Here is my page where the links are not displayed.

@TimothyElder
Copy link
Author

I am updating this as I figured out the problem and will add at least one solution here in case anyone runs into this problem:

The issue was that when I ran the Hugo code to generate the HTML files for my website all the URLs to the static images for the social icons I was using had HTTPS prefixes. My website was not HTTPS enabled and so the URLs were not directing to the actual location of the image files for the icons and so weren't displaying. The links were still embedded on the pages where the social icons would appear but because the static images couldn't be accessed you couldn't see them.

I haven't figured out an automatic fix for this, there doesn't seem to be some place in the Codex templates to say whether or not your website is HTTPS enabled and so to create the right URLs, so I have had to just go in and edit the html documents manually. Ctrl-F, find and replace does the trick quickly but I will have to do the same thing when I change my website and recompile it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant