What Is The Correct Way To Express A Path In Order To Get Pelican Generated Html To Link To An Image?
In that case, when Pelican is building actual page, it will look for any referenced static file in ./content/images
and ./content/files
locations. If cannot find there, it will emit the error message.
Now, answering to your trouble ...
By,
...src="./myImg1a.png" ...
Pelican
look for this myImg1a.png
file in your myBlog/content/
folder as you are mentioning ./
which is the root folder for Pelican
is working on.
But, when you are referring it as
...src="/myImg1a.png" ...
Pelican
eventually finds it in the html
file's directory. By getting /
as location, Pelican
is looking for it in the same directory of your myblog/my-blog-post/index.html
which is myblog/my-blog-post/
.
Hence, working. But not in the ideal way.
For a deeper understanding, please take a look into Pelican's documentation on this matter.
- Why was the folder /category/myImg1a.png/index.html being sought at all?
Pelican
, here, just trying to be smart.
Post a Comment for "What Is The Correct Way To Express A Path In Order To Get Pelican Generated Html To Link To An Image?"