initial commit

This commit is contained in:
xiaomai
2025-10-01 16:52:52 +08:00
commit e93b931288
35 changed files with 12784 additions and 0 deletions

79
docs/News Structure.md Normal file
View File

@@ -0,0 +1,79 @@
如果你用 **Nuxt Content** 来做一个「新闻模块」📢,推荐的字段设计应该既能满足 **SEO、前端展示** ,又方便 **后期维护** 。我帮你列一个比较完整的 schema你可以按需求裁剪
---
### 🔑 必备字段
```yaml
title: "文章标题"
slug: "自定义路由别名(如果不写就用文件名)"
date: "发布日期 (ISO 格式2025-09-30)"
updated: "最后更新时间"
author: "作者姓名 / 单位"
description: "简短摘要SEO & 列表用)"
```
---
### 🎨 展示相关字段
```yaml
cover: "/images/news/xxx.jpg" # 封面图
tags: ["活动", "公告", "产品更新"] # 文章标签
category: "新闻分类(活动 / 通知 / 招聘 / 博客)"
highlight: true # 是否置顶 / 推荐
```
---
### 📊 SEO & 社交分享
```yaml
seoTitle: "SEO 优化标题"
seoDescription: "SEO 描述(优先级高于 description"
ogImage: "/images/og/news-xxx.jpg" # 用于社交媒体分享的缩略图
```
---
### 🏢 组织 & 来源信息
```yaml
organization: "Tootaio Studio" # 发表单位
sourceUrl: "原文链接(如果是转载)"
```
---
### 🧩 可选扩展字段
```yaml
lang: "zh-CN" # 多语言支持
readingTime: 3 # 预计阅读时长(分钟)
status: "draft | published" # 发布状态
```
---
### 📂 目录结构建议
```
content/
news/
2025-09-30-first-news.md
2025-10-01-second-news.md
```
每篇文章写在 `content/news/xxx.md` 里,前面用 **YAML frontmatter** 定义这些字段,正文就是 markdown 内容。
---
👉 我建议最小 MVP 至少要:
`title, date, author, description, cover, category, tags`
这样就可以做新闻列表页 + 详情页 + SEO。
如果你想做「置顶新闻」或「专题合集」,就加 `highlight``category`
要不要我帮你直接写一个 **完整的示例 .md 文件** ,包含这些字段?