Layout tree (as in design/layout.json)
{
"pattern": "blog.organic-journal-entries",
"kind": "blog",
"grid": {
"header": "1-6",
"posts": "1-12"
},
"slots": [
"sectionLabel",
"title",
"posts[2..6]"
],
"tree": {
"el": "grid",
"gap": 4,
"rowGap": 6,
"children": [
{
"el": "box",
"span": "1-6",
"gap": 2,
"children": [
{
"el": "text",
"color": "textMuted",
"slot": "sectionLabel",
"role": "eyebrow",
"italic": true
},
{
"el": "text",
"slot": "title",
"role": "h2",
"step": 5,
"weight": 400,
"maxCh": 20
}
]
},
{
"el": "repeat",
"span": "1-12",
"slot": "posts",
"min": 2,
"max": 6,
"layout": "grid",
"cols": 2,
"gap": 6,
"of": {
"el": "box",
"gap": 2,
"children": [
{
"el": "media",
"slot": "image",
"aspect": "3/2",
"treatment": "photo",
"frame": "rounded"
},
{
"el": "text",
"color": "textMuted",
"slot": "meta",
"role": "small",
"italic": true
},
{
"el": "text",
"slot": "title",
"role": "h3",
"step": 3,
"weight": 400
},
{
"el": "text",
"color": "textMuted",
"slot": "body",
"role": "body",
"maxCh": 50
}
]
}
}
]
}
}