Allows you to wrap you <img>
tags with <figure>
and add <figcaption>
.
This is a plugin for the static site generation tool Pretzel.
To add properly formatted <img>
tag to the page:
{% picture "/assets/images/darkside.jpg" %}
Image of dark side
<cite>— Photo by <a href="http://zwezdin.com" rel="author" target="_blank">Sergey Zwezdin</a></cite>
{% endpicture %}
You can also customize it by adding some CSS-classes:
{% picture "/assets/images/darkside.jpg" "bordered" %}
Image of dark side
<cite>— Photo by <a href="http://zwezdin.com" rel="author" target="_blank">Sergey Zwezdin</a></cite>
{% endpicture %}
You can skip any descriptions for image. In this case <figcaption>
won't be added.
{% picture "/assets/images/darkside.jpg" %}
{% endpicture %}
Download the latest release and copy Pretzel.Picture.dll
to the _plugins
folder at the root of your site folder.