Layout tree (as in design/layout.json)
{
"pattern": "blog.tech-changelog",
"kind": "blog",
"grid": {
"title": "1-4",
"list": "5-12"
},
"slots": [
"title",
"cta",
"posts[4..8]"
],
"tree": {
"el": "grid",
"gap": 3,
"align": "start",
"children": [
{
"el": "box",
"span": "1-4",
"bg": "surface",
"gap": 2,
"pad": [
6,
6
],
"border": "all",
"children": [
{
"el": "text",
"slot": "title",
"role": "h2",
"step": 5,
"weight": 600,
"tracking": "tight",
"leading": "tight"
},
{
"el": "button",
"slot": "cta",
"variant": "link",
"arrow": true
}
]
},
{
"el": "repeat",
"span": "5-12",
"slot": "posts",
"min": 4,
"max": 8,
"layout": "list",
"divider": true,
"of": {
"el": "grid",
"cols": 8,
"gap": 3,
"pad": [
3,
0
],
"align": "baseline",
"children": [
{
"el": "text",
"span": "1-2",
"bg": "surfaceAlt",
"slot": "meta",
"role": "label",
"font": "mono"
},
{
"el": "box",
"span": "3-8",
"gap": 1,
"children": [
{
"el": "text",
"slot": "title",
"role": "h4",
"step": 1,
"weight": 600
},
{
"el": "text",
"slot": "body",
"role": "small",
"maxCh": 60
}
]
}
]
}
}
]
}
}