index.liquid

The index.liquid template renders the home page of the store. The template is loaded when you go to the root ("/") of the store.

Template Considerations

In order to output dynamic sections built in the theme editor, the index.liquid template must include the {{ content_for_index }} object. Read about building theme sections for more information.

Accessing the attributes of a specific object

Inside the index.liquid template, you might want to show the contents of a specific object. For example, you might want to showcase the Frontpage collection on the home page. This is done by passing the handle of a specific object or through a theme setting variable. See Accessing attributes with the handle for more details.

Ready to start selling with Shopify?

Try it free