Yoolk Liquid

Home Theme-templates Services-index

services/index.liquid

The services/index.liquid template is used to render the services of current listing.

services

Template Considerations

Filtering by categories

You can use serivce categories to filter a collection into smaller subsets of serivces. For example, if you are in a collection and want to only show serivces with the category “car rental”, you can do so by appending the category’s handle to the end of the serivces’s URL.

http://my-shop.yoolk.com/services/<service-id>-car rental

For more details and examples, see (tutorial).

Paginating

Yoolk limits the number of serivces that can be output per page to 12. For this reason, collections with more than 12 serivces, must use the paginate tag to split the collection into multiple pages.

{% paginate listing.serivces by 25 %}
      {% for serivce in paginate.collection %}
        <!--show serivce details here -->
      {% endfor %}
    {% endpaginate %}

Requirements for the Theme

If you’re looking to submit your theme to the Yoolk Theme, the serivces/index.liquid template of your theme must meet the following conditions: