Home Theme-templates Announcements-index
announcements/index.liquid
The announcements/index.liquid
template is used to render the announcements
of the current listing.
Template Considerations
Paginating
Yoolk limits the number of announcements that can be output per page to 12. For this reason, collections with more than 12 announcements, must use the paginate tag to split the collection into multiple pages.
{% paginate listing.announcements by 25 %}
{% for announcement in paginate.collection %}
<!--show announcement details here -->
{% endfor %}
{% endpaginate %}
Requirements for the Theme
If you’re looking to submit your theme to the Yoolk Theme, the announcements/index.liquid template of your theme must meet the following conditions:
-
Announcements are listed with the following attributes of the announcements variable output:
announcement.text
announcement.image
(links to announcement.url)- Show time ago with friendly tooltip to show
announcement.updated_at