Partial Data Model
Partials in the current site’s theme.
Sample JSON Data
{ "data": { "type": "partials", "id": "65adbedc-00a3-411f-9cae-76ad575f0347", "attributes": { "file-name": "header.liquid", "content": "<header class=\"header\">{{ 'images/logo.png' | asset_url | img_tag: 'Logo' }}</header>", "created-at": "2012-04-23T18:25:43.511Z", "updated-at": "2012-04-23T18:25:43.511Z" } } }
Attributes
Attribute | Type | Required | Description |
---|---|---|---|
file-name
|
string |
Yes |
Name of file in theme’s partials folder.
|
content
|
string |
Yes | Content of partial. Can include Liquid markup. |
created-at
|
date |
Read-only | Timestamp recording when partial was created, localized to the current logged in user’s time zone. |
updated-at
|
date |
Read-only | Date and time partial record was last updated, localized to the current logged in user’s time zone. |
Relationships
None.