-
Notifications
You must be signed in to change notification settings - Fork 45.2k
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
images not showing in sidebar #91
Comments
Hi udion and others, I’ve encountered the same problem with yours. I could change the default profile images to other photos(png formatt only, jpg test failed) already included in the image file. However, when I uploaded a png photo, it didn't work. What's more, I can't make it work by renaming the uploaded photo to default: profile.png. |
No, still no luck, I could find pages which are using the same template with their own images but could not find how they are doing it. |
check out HUGO! |
I have a similar problem: some images do work and show in the site (in my case I have added a photo in the "about" pages and it shows correctly) but some others don't, like the profile picture in the sidebar or any other image I add in any other page. |
Did you change the base url in the config.yml file to your url? url : https://[yourAccountName].github.io Otherwise the image is searched under https://academicpages.github.io |
Some toughts about the "config.yml" : Correct >>>> avatar: name_of_the_picture.png I tried 2 pictures. One worked out well, the other dont. (dont know why). |
I've found that sometimes you need to capitalize the file type, i.e.
I've had some issues with the photo showing up fine on the front page but not on subpages, but this seems to help at least partially. |
I think one of the key issues is that once you change the name after "avatar", you need to locally update it using git and upload it online to github using git as well. Once your images are uploaded on github, you should be able to display it locally using "bundle exec jekyll liveserve" as well. The reason for this is that the generated index.html file under the _site folder has the location of the image points to your online github repository. Without uploading the images to github first, your local index.html will not display the image. |
I've got this problem, i've changed the url and put my file in the images folder. I can see it in the repo on github, but when it searches [myrepo].github.io/images/myimage.jpg it doesn't find anything. I've checked another repo and they have done exactly the same. When I check [hisrepo].github.io/images/hisimage.jpg the file is there. All he did was add it to the images folder same as me, why is my image not appearing? |
I should mention my workflow is: clone the forked repo Then I wait a bit and have a look at the website to see if I broke anything. I've not tried displaying locally. |
Alright, a little bit strange, not sure if useful to anyone: I tried it locally using |
This works for me. |
To me, this basically works. Plus: |
For me, this wasn't the case. Changing my _config.yml to |
I know this thread has been dormant for a while, but none of the above solutions brought me any closer to my picture showing up on the page. |
Thanks, this one is working fine, change the URL and GitHub repo path. |
I also faced this issue. I followed the following steps to resolve them:
In
I committed these changes and pushe them into the repository. |
super useful ! |
add niv haim's homepage
I found that my uploaded images were way too heavy and high-resolution than the original profile.png, that is 720x720 px @72 dpi. Once I resized my picture and commited it, it displayed correctly. |
Delete everything behind the colon related to #Site Author(author) from the _config.yml file and commit. And if it's confirmed that it's all been deleted from your homepage, you can just add the avatar. |
Reading through the discussion there doesn't seem to be a bug in the underlying code, but we should add to the wiki a good write-up on how images are processed in the template. |
SOLVE IT: -- |
What I was able to do to fix this issue: rlucas7/rlucas7.github.io@e14176c basically I use the filepath base directory templating:
or if you use html tags directly
there are a couple examples of both approaches in the commit referenced above in case you want something super concrete. Hope this helps. |
I have placed my profile picture in images folder and updated config.yml so that avatar has my image name, I am still not able to see my images, however if I put the names of the file which were there by default (i.e profile.png, etc..) it seems to work.
Please help
The text was updated successfully, but these errors were encountered: