add blog to project

This commit is contained in:
mahdiarghyani
2025-11-09 13:56:03 +03:30
parent 24a91baaf5
commit c7e5eb0713
26 changed files with 3310 additions and 11 deletions
+44
View File
@@ -0,0 +1,44 @@
import type { ParsedContent } from '@nuxt/content'
export interface BlogPost extends ParsedContent {
// Required fields
title: string
description: string
date: string // ISO 8601 format
tags: string[]
_path: string
// Optional fields
image?: string // Cover image path
author?: string
draft?: boolean
updatedAt?: string
// Custom SEO
head?: {
title?: string
description?: string
image?: string
}
// Body with TOC
body?: {
type: string
children: any[]
toc?: {
title: string
searchDepth: number
depth: number
links: Array<{
id: string
text: string
depth: number
children?: Array<{
id: string
text: string
depth: number
}>
}>
}
}
}