Skip to content

How to add Images in the Others page ?? #1990

Answered by rjzupkoii
tushaarkataria asked this question in Q&A
Discussion options

You must be logged in to vote

I appreciate the pathing can be a bit confusing, but the reason I mentioned the _portfolio directory because those are examples of how images need to be referenced. If you add the images to the /images/ directory of you repository then the correct path for the image will be (note the /images/ directory is included):

<img src='/images/500x300.png'>

You can see that I also do this with my own website, such as in this example. The reason you need to do this is to ensure that images are served relative to your website (i.e., https://tushaarkataria.github.io) not relative to https://github.com/tushaarkataria/tushaarkataria.github.io which is a form of hot-linking. Indeed, if you try to go to h…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@rjzupkoii
Comment options

Answer selected by tushaarkataria
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1987 on March 15, 2024 00:25.