Context object
Available as:
- First argument in custom routes (as in this source file)
- Second argument in routes with variants
Contains:
variants: A flat list of all variants from all routes
{
"variants": [
{
"_id": "80cac608-f576-4eca-8927-ab3252b664f4",
"body": [
{
"_key": "ea1ccb4a8f72",
"_type": "block",
"children": [
{
"_key": "257e8213d5a8",
"_type": "span",
"marks": [],
"text": "This is the "
},
{
"_key": "b7c082aad611",
"_type": "span",
"marks": [
"strong"
],
"text": "body"
},
{
"_key": "5393e036abd0",
"_type": "span",
"marks": [],
"text": " of the first article"
}
],
"markDefs": [],
"style": "normal"
},
{
"_key": "b85b65c26f50",
"_type": "block",
"children": [
{
"_key": "2b57b9697ba2",
"_type": "span",
"marks": [],
"text": "One"
}
],
"level": 1,
"listItem": "bullet",
"markDefs": [],
"style": "normal"
},
{
"_key": "9d533aacbec2",
"_type": "block",
"children": [
{
"_key": "27fde40cbc82",
"_type": "span",
"marks": [],
"text": "Two"
}
],
"level": 1,
"listItem": "bullet",
"markDefs": [],
"style": "normal"
},
{
"_key": "80d7988c0765",
"_type": "block",
"children": [
{
"_key": "3920ef454296",
"_type": "span",
"marks": [],
"text": "Three"
}
],
"level": 1,
"listItem": "bullet",
"markDefs": [],
"style": "normal"
}
],
"image": {
"_type": "image",
"asset": {
"_ref": "image-ae7521302183da3049ce2e6768f212a5e56bfc28-200x300-jpg",
"_type": "reference"
}
},
"title": "First article",
"url": "articles/80cac608-f576-4eca-8927-ab3252b664f4"
},
{
"_id": "c22e1f7a-0fc5-4a1c-b729-1823b1f004c0",
"body": [
{
"_key": "6d39094c763c",
"_type": "block",
"children": [
{
"_key": "e2f9eb48161c",
"_type": "span",
"marks": [],
"text": "Some text in the second article"
}
],
"markDefs": [],
"style": "normal"
}
],
"image": {
"_type": "image",
"asset": {
"_ref": "image-b603d762f71537c7d14ff766097f20823ede36ce-500x300-png",
"_type": "reference"
}
},
"title": "Second article",
"url": "articles/c22e1f7a-0fc5-4a1c-b729-1823b1f004c0"
},
{
"_id": "847a3704-01a1-4446-a5c0-c96c7838688b",
"sections": [
{
"_key": "c433c5d741cf",
"_type": "section.text",
"content": [
{
"_key": "7deeeb2827ac",
"_type": "block",
"children": [
{
"_key": "d17b028eb784",
"_type": "span",
"marks": [],
"text": "The web starter is a template for starting new web projects at internetfriendsforever. "
}
],
"markDefs": [],
"style": "normal"
},
{
"_key": "7d0e33246cfa",
"_type": "block",
"children": [
{
"_key": "0c91244c45ef",
"_type": "span",
"marks": [],
"text": "It is an opinionated no-framework approach to making website."
}
],
"markDefs": [],
"style": "normal"
},
{
"_key": "dd9066a89e4e",
"_type": "block",
"children": [
{
"_key": "31cc24f711b7",
"_type": "span",
"marks": [],
"text": "It is simultaneously a research project and working prototype."
}
],
"markDefs": [],
"style": "normal"
},
{
"_key": "40c070464300",
"_type": "block",
"children": [
{
"_key": "5e1f1a9f59d3",
"_type": "span",
"marks": [],
"text": "It builds on the idea of having control over dependencies and making maintenance enjoyable."
}
],
"markDefs": [],
"style": "normal"
},
{
"_key": "b27ad1d8f74e",
"_type": "block",
"children": [
{
"_key": "11ca872aa592",
"_type": "span",
"marks": [],
"text": "For the most part, the web starter is fairly straight forward, but to get the optimal developer experience, there is some manual set-up to do. Specifically how to get javascript tagged template literals to behave as html in Sublime Text."
}
],
"markDefs": [],
"style": "normal"
},
{
"_key": "d9d694e9db63",
"_type": "block",
"children": [
{
"_key": "0683664ba0b4",
"_type": "span",
"marks": [],
"text": ""
}
],
"markDefs": [],
"style": "normal"
}
]
}
],
"slug": {
"_type": "slug",
"current": "about-the-web-starter"
},
"title": "About the web starter"
},
{
"_id": "fb555201-f328-46bc-a7f3-3c02b536fb3c",
"sections": [
{
"_key": "3deb12ff3260",
"_type": "section.text",
"content": [
{
"_key": "ce4bf9b10f4e",
"_type": "block",
"children": [
{
"_key": "1b724104ed98",
"_type": "span",
"marks": [],
"text": "Design system text goes here"
}
],
"markDefs": [],
"style": "normal"
},
{
"_key": "f4c22800f9e6",
"_type": "block",
"children": [
{
"_key": "10cdec07ebff",
"_type": "span",
"marks": [],
"text": ""
}
],
"markDefs": [],
"style": "normal"
},
{
"_key": "ac15bda09f73",
"_type": "imageExtended",
"asset": {
"_ref": "image-f25b5da130f2c5107411b519a04c7f363426378d-3400x2267-jpg",
"_type": "reference"
},
"caption": [
{
"_key": "1846132c58ac",
"_type": "block",
"children": [
{
"_key": "bc086e0c8ac9",
"_type": "span",
"marks": [],
"text": "Sun shining"
}
],
"markDefs": [],
"style": "normal"
}
]
}
]
}
],
"slug": {
"_type": "slug",
"current": "design-system"
},
"title": "Design system"
}
]
}