Home Theme-templates Home-index
home/index.liquid
The home/index.liquid
template renders the homepage of the listing website. The template is loaded when you go to the root (“/”) of the website.
Template Considerations
Inside the home/index.liquid template, you may want to show the contents of a specific object base on your template category. For example, you may want to showcase the Products and Galleries on the homepage.
Requirements for the Theme
If you’re looking to submit your theme to the Yoolk Theme, the home/index.liquid template of your theme must meet the following conditions:
- If you’re including cover photo on the homepage, ensure that the following requirements are met:
- Recommended dimensions of the cover photo can be provided
- If there are more than one cover photos it will display as slideshow
- Layout does not break when slides are a different height
- Products are listed in a grid or list, with the following attributes of the product variable output:
product.name
(not break the layout when name is long and links to product.url)product.price
product.cover_photo
- Show images of the galleries
- Enlargeable via Lightbox
- Different image ratios should not break the layout
- Output image.alt for all images
- Each sections can point to its own page via a link.