mirror of
https://github.com/SamyRai/tercul-backend.git
synced 2025-12-27 05:11:34 +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.9 KiB
JSON
44 lines
1.9 KiB
JSON
{
|
|
"contentTypeSlug": "blog",
|
|
"title": "The Future of Artificial Intelligence",
|
|
"slug": "future-of-ai",
|
|
"status": "published",
|
|
"content": {
|
|
"excerpt": "A deep dive into the future of artificial intelligence, exploring its potential impact on society, industry, and our daily lives.",
|
|
"content": "<p>Artificial intelligence (AI) is no longer a concept confined to science fiction. It's a powerful force that's reshaping our world in countless ways. From the algorithms that power our social media feeds to the sophisticated systems that drive autonomous vehicles, AI is already here. But what does the future hold for this transformative technology?</p><p>In this post, we'll explore some of the most exciting advancements on the horizon, including the rise of general AI, the potential for AI-driven scientific discovery, and the ethical considerations that we must address as we move forward.</p>",
|
|
"publishDate": "2024-09-15",
|
|
"author": "Dr. Evelyn Reed",
|
|
"tags": ["AI", "Machine Learning", "Technology"],
|
|
"meta_title": "The Future of AI: A Comprehensive Overview",
|
|
"meta_description": "Learn about the future of artificial intelligence and its potential impact on our world."
|
|
},
|
|
"languageCode": "en-US",
|
|
"isDefault": true,
|
|
"id": "post-1",
|
|
"translation_group_id": "tg-future-of-ai",
|
|
"lifecycle": {
|
|
"state": "published",
|
|
"published_at": "2024-09-15T10:00:00Z",
|
|
"timezone": "UTC"
|
|
},
|
|
"seo": {
|
|
"canonical": "https://example.com/blog/future-of-ai",
|
|
"og_title": "The Future of Artificial Intelligence",
|
|
"og_description": "A deep dive into the future of AI.",
|
|
"twitter_card": "summary_large_image"
|
|
},
|
|
"taxonomy": {
|
|
"categories": ["Technology", "Science"],
|
|
"featured": true
|
|
},
|
|
"relations": {
|
|
"related_posts": ["post-2"]
|
|
},
|
|
"assets": {
|
|
"hero_image": {
|
|
"url": "https://example.com/images/ai-future.jpg",
|
|
"alt": "An abstract image representing artificial intelligence."
|
|
}
|
|
}
|
|
}
|