---
title: 'Liquid objects: content_for_index'
description: >-
  Dynamically returns the content of [sections](/themes/architecture/sections)
  to be rendered on the home page.
source_url:
  html: 'https://shopify.dev/docs/api/liquid/objects/content_for_index'
  md: 'https://shopify.dev/docs/api/liquid/objects/content_for_index.md'
api_name: liquid
---

# content\_​for\_​index

Dynamically returns the content of [sections](https://shopify.dev/themes/architecture/sections) to be rendered on the home page.

If you use a [Liquid index template](https://shopify.dev/themes/architecture/templates/index-template) (`templates/index.liquid`), then you must include `{{ content_for_index }}` in the template. This object can't be used in JSON index templates.

### Directly accessible in

* Global
