# Liquid Object: section
The section object represents the properties and configuration of a section within a Shopify theme.
## Properties
| Property | Type | Description |
|----------|------|-------------|
| `blocks` | array of [block](https://shopify.dev/docs/api/liquid/objects/block) | "The blocks of the section." |
| `id` | string | The identifier for a section. For static sections, this matches the filename without the `.liquid` extension (e.g., `header.liquid` becomes `header`). IDs in JSON templates are auto-generated by Shopify. |
| `index` | number | "The 1-based index of the current section within its location." Useful for performance optimization, such as lazy-loading images below the fold. Returns `nil` for static sections, in the editor, or via Section Rendering API. |
| `index0` | number | "The 0-based index of the current section within its location." Identical to `index` except counting begins at 0. |
| `location` | string | The context where the section renders: `template`, section group type (`header`, `footer`, `custom.<type>`), `static`, or `content_for_index`. |
| `settings` | object | "The settings of the section." Access these values according to section schema configuration. |
## Example
```json
{
"blocks": [],
"id": "template--14453298921537__cart-items",
"settings": {}
}
```