Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

sergeyzwezdin/Pretzel.Picture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Pretzel.Picture

Allows you to wrap you <img> tags with <figure> and add <figcaption>.

This is a plugin for the static site generation tool Pretzel.

Usage

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 %}

Installation

Download the latest release and copy Pretzel.Picture.dll to the _plugins folder at the root of your site folder.

About

Picture plugin for Pretzel

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages