How do I attach images in Pelican?
<p>I am trying to attach an image in Pelican, following the documentation <a href="http://docs.getpelican.com/en/3.6.3/content.html#linking-to-static-files" rel="noreferrer">here</a>. Here is the markdown:</p>

<pre><code>![energy]({filename}images/energy.png)
</code></pre>

<p>and the pelicanconf.py:</p>

<pre><code>PATH = 'content'
STATIC_PATHS = ['images', 'pdfs']
ARTICLE_URL = 'blog/{date:%Y}/{date:%m}/{slug}.html'
ARTICLE_SAVE_AS = 'blog/{date:%Y}/{date:%m}/{slug}.html'
</code></pre>

<p>The <code>.html</code> files are written into <code>output/YYYY/MM/</code> directory where the markdown gets interpreted as:</p>

<pre><code>&lt;img alt="energy" src="{filename}/images/energy.png"/&gt;
</code></pre>

<p>in the <code>.html</code> while the images are written into <code>output/images</code> folder. </p>

<p>So the HTML files cannot find the images. How do I fix it? Ideally, I would like to store the images in the same folder as the <code>.html</code> files (I think that is what <code>{attach}</code> does).</p>

<p>Any help would be appreciated.</p>