Reputation: 193
I realize that it should be something like this: {filename}path/to/file
or {attach}path/to/file
but how to specify path in the template <img src="?"/>
in order to render properly?
Upvotes: 0
Views: 88
Reputation: 43533
What you are looking for is {static}path/to/file
.
Furthermore, you don't have to specify the img
tag in your templates.
Pelican (or rather docutils) takes care of it.
Edit:
With regard to lay-out, I tend to use:
.. image:: {static}/path/to/image.jpg
:width: 100%
Upvotes: 0