Filter: Get image thumbnail

How to get image thumbnail in Anqi CMS template?

thumbThe filter can retrieve a thumbnail of the image based on its address.

Usage method

thumbHow to use the filter:

{{ image|thumb }}

For example, to get the thumbnail of a banner image, you can write it like this:

{% bannerList banners %}
    {% for item in banners %}
    <a href="{{item.Link}}" target="_blank">
        <img src="{{item.Logo}}" alt="{{item.Alt}}" />
        <div class="thumb">
          {{ item.Logo|thumb }}
        </div>
    </a>
    {% endfor %}
{% endbannerList %}