Closed m80126colin closed 10 years ago
Use url_for
helper: http://hexo.io/docs/helpers.html#url_for
@sergiolepore Sorry, I don't know how to use url_for
in my markdown file.
You has already know where your imgs are.
Just use ![](http://<username>.github.io/blog/img/images.jpg)
to insert.
@Xuanwo Yes, I know where the images are, but it seems that something improper with respect to design.
@m80126colin With markdown, you can't order the size of your image. If you want to, please use html.
@m80126colin If problem has been solved, please close the issue. Thanks~
I tried to insert some photo into my articles but met a problem. If my host name is
http://<username>.github.io
, there is no problem; however, it happened when I tried to deploy tohttp://<username>.github.io/blog
. There is my markdown file with the image/img/images.jpg
Thus, the position of
images.jpg
will be athttp://<username>.github.io/blog/img/images.jpg
. But both gallery photo and insert images were strange. My generated HTML is as follow:The url
/blog//img/images.jpg
of gallery photo sometimes worked.But this url actually points to
http://<username>.github.io/img/images.jpg
where has nothing! I also checkedpublic
file and confirmed that this image is really at its correct position.