Layout tree (as in design/layout.json)
{
"pattern": "blog.editorial-magazine-latest",
"kind": "blog",
"grid": {
"image": "1-3",
"story": "5-10",
"date": "11-12"
},
"slots": [
"title",
"posts[3..10]"
],
"tree": {
"el": "box",
"gap": 3,
"children": [
{
"el": "text",
"slot": "title",
"role": "h2",
"weight": 400
},
{
"el": "repeat",
"slot": "posts",
"min": 3,
"max": 10,
"layout": "list",
"gap": 0,
"divider": true,
"of": {
"el": "grid",
"gap": 3,
"pad": [
4,
0
],
"align": "start",
"children": [
{
"el": "media",
"span": "1-3",
"slot": "image",
"aspect": "4/3",
"treatment": "photo"
},
{
"el": "box",
"span": "5-10",
"gap": 1,
"children": [
{
"el": "text",
"color": "accent",
"slot": "label",
"role": "eyebrow",
"transform": "uppercase",
"tracking": "wide",
"font": "body"
},
{
"el": "text",
"slot": "title",
"role": "h3",
"weight": 400
},
{
"el": "text",
"slot": "body",
"role": "body",
"italic": true
}
]
},
{
"el": "text",
"span": "11-12",
"color": "textMuted",
"slot": "meta",
"role": "small",
"transform": "uppercase",
"tracking": "wide",
"font": "body"
}
]
}
}
]
}
}