Yoolk Liquid

Home Objects Announcement

Announcement

The announcement object has the following attributes:

announcement.image

Returns an image of a announcement. Use the attachment_url filter to link to the image on Yoolk’s Content Delivery Network. [Optional]

Input

{% for announcement in listing.announcements %}
  {% if announcement.image %}
    {{ announcement | attachment_url: 'medium' | image_tag }}
  {% endfor %}
{% endfor %}

Output

<img src="http://s-yoolk-images1.yoolk.com/kh/announcement_images/medium/1367097277/1250047?1367097277" />
Parameters: image sizes
styles size
medium 322 x auto
large 994 x auto