Alex
Alex

Reputation: 193

How to add image to the article?

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

Answers (1)

Roland Smith
Roland Smith

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

Related Questions