Sha256: 2b2033e67ad359883c9d0aac31a375ee173867402ec423fd07c6d9008141a782

Contents?: true

Size: 947 Bytes

Versions: 3

Compression:

Stored size: 947 Bytes

Contents

---
sort: 2
---

# Tag Usage

This section describes how to use JPT's liquid tag ({% raw %} `{% picture (...)
%}` {% endraw %}); what options it takes and what kind of information you can pass
through it to influence the the final HTML and generated images.

## Format

{% raw %}
`{% picture [preset] (image) [crop] [alternate images & crops] [attributes] %}`
{% endraw %}

The only required argument is the base image. Line breaks and extra spaces are
fine, and you can use liquid variables anywhere.

* `preset` - Select a recipe/blueprint from the ones you have defined in
  `presets`. Will use `default` if not specified.

* `(image)` - required.

* `crop` - Geometry and gravity arguments, passed to imagemagick.

* `alternate images & crops` - Art Direction; show different images on different
  devices. Give in order of ascending specificity.

* `attributes` - Add css classes, data-attributes, or wrap the whole thing in an
  anchor tag.

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jekyll_picture_tag-1.14.0 docs/users/liquid_tag/index.md
jekyll_picture_tag-1.13.0 docs/users/liquid_tag/index.md
jekyll_picture_tag-1.12.0 docs/users/liquid_tag/index.md