mirror of
https://github.com/SamyRai/tercul-backend.git
synced 2025-12-27 00:31:35 +00:00
This commit introduces a new blog feature by implementing a JSON schema for blog posts and providing five example content files. Key changes: - Created a new directory structure for schemas and content (`schemas/`, `content/blog/`). - Implemented a JSON schema for blog posts, split into `blog.json` and `_defs.json` for reusability. - Added five example blog post files with full, realistic content. - Included a Python script (`validate.py`) to validate the example content against the schema.
44 lines
1.7 KiB
JSON
44 lines
1.7 KiB
JSON
{
|
|
"contentTypeSlug": "blog",
|
|
"title": "Exploring the Wonders of the Cosmos",
|
|
"slug": "exploring-the-cosmos",
|
|
"status": "published",
|
|
"content": {
|
|
"excerpt": "Join us on a journey through the cosmos as we explore distant galaxies, mysterious black holes, and the search for extraterrestrial life.",
|
|
"content": "<p>The universe is a vast and mysterious place, filled with wonders that we are only just beginning to understand. From the birth of stars to the formation of galaxies, the cosmos is a story of epic proportions.</p><p>In this post, we'll take a look at some of the most awe-inspiring discoveries in modern astronomy and consider the big questions that continue to drive our exploration of space.</p>",
|
|
"publishDate": "2024-09-25",
|
|
"author": "Dr. Kenji Tanaka",
|
|
"tags": ["Astronomy", "Space", "Science"],
|
|
"meta_title": "A Journey Through the Cosmos",
|
|
"meta_description": "Explore the wonders of the universe with our guide to modern astronomy."
|
|
},
|
|
"languageCode": "en-US",
|
|
"isDefault": true,
|
|
"id": "post-4",
|
|
"translation_group_id": "tg-exploring-the-cosmos",
|
|
"lifecycle": {
|
|
"state": "published",
|
|
"published_at": "2024-09-25T10:00:00Z",
|
|
"timezone": "UTC"
|
|
},
|
|
"seo": {
|
|
"canonical": "https://example.com/blog/exploring-the-cosmos",
|
|
"og_title": "Exploring the Wonders of the Cosmos",
|
|
"og_description": "A journey through the cosmos.",
|
|
"twitter_card": "summary"
|
|
},
|
|
"taxonomy": {
|
|
"categories": ["Science", "Astronomy"],
|
|
"featured": false
|
|
},
|
|
"relations": {
|
|
"related_posts": ["post-1", "post-5"]
|
|
},
|
|
"assets": {
|
|
"hero_image": {
|
|
"url": "https://example.com/images/cosmos.jpg",
|
|
"alt": "A stunning image of a spiral galaxy."
|
|
}
|
|
}
|
|
}
|