from pathlib import Path
import json
Create a JSON layout structure for WordPress Gutenberg blocks (simplified)
layout = {
“version”: 2,
“content”: [
{
“blockName”: “core/cover”,
“attrs”: {
“url”: “https://example.com/australia-job-cover.jpg”,
“dimRatio”: 50,
“overlayColor”: “black”
},
“innerBlocks”: [
{
“blockName”: “core/heading”,
“attrs”: {“level”: 1},
“innerHTML”: “Top Jobs in Australia with Visa Sponsorship – Earn Up to $150,000 AUD in 2025!”
},
{
“blockName”: “core/paragraph”,
“innerHTML”: “Explore high-paying job opportunities in Australia with full visa sponsorship and relocation support.”
},
{
“blockName”: “core/buttons”,
“innerBlocks”: [
{
“blockName”: “core/button”,
“attrs”: {“text”: “Apply Now”},
},
{
“blockName”: “core/button”,
“attrs”: {“text”: “Download PDF Guide”},
}
]
}
]
},
{
“blockName”: “core/columns”,
“innerBlocks”: [
{
“blockName”: “core/column”,
“innerBlocks”: [
{
“blockName”: “core/paragraph”,
“innerHTML”: “Australia is actively hiring skilled and unskilled workers in 2025.”
}
]
},
{
“blockName”: “core/column”,
“innerBlocks”: [
{
“blockName”: “core/list”,
“innerHTML”: “
- High Salaries
- Visa Sponsorship
- Work-Life Balance
- Permanent Residency Options
“
}
]
}
]
}
]
}
Save to a JSON file
output_path = Path(“/mnt/data/australia_jobs_landing_page_layout.json”)
with open(output_path, “w”) as f:
json.dump(layout, f, indent=2)
output_path.name