blog mvp completed

This commit is contained in:
mahdiarghyani
2025-11-09 15:31:41 +03:30
parent c7e5eb0713
commit d2333d3db2
24 changed files with 1171 additions and 175 deletions
+4 -24
View File
@@ -1,12 +1,10 @@
import type { ParsedContent } from '@nuxt/content'
export interface BlogPost extends ParsedContent {
export interface BlogPost {
// Required fields
title: string
description: string
date: string // ISO 8601 format
tags: string[]
_path: string
path: string // Nuxt Content v3 uses 'path' instead of '_path'
// Optional fields
image?: string // Cover image path
@@ -21,24 +19,6 @@ export interface BlogPost extends ParsedContent {
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
}>
}>
}
}
// Body with TOC (MarkdownRoot from Nuxt Content)
body?: any
}