基于 GitHub Pages 的文章归档系统 API 文档
API 版本: v1.0
本 API 提供对小羿先森网站(xiaoyi.vc)文章的归档访问接口。主要功能包括:
{
"title": "文章标题",
"date": "2025-02-19T10:53:29", // 发布时间 ISO 格式
"lastmod": "2025-02-19T10:53:29", // 最后更新时间
"url": "https://xiaoyi.vc/article-url.html", // 原文链接
"author": "小羿先森",
"category": ["分类1", "分类2"], // 文章分类
"views": 123, // 阅读量
"text_content": "文章正文内容...", // 格式化后的文本内容
"images": [ // 文章图片列表
"https://xiaoyi.vc/wp-content/uploads/2025/02/image1.png",
"https://xiaoyi.vc/wp-content/uploads/2025/02/image2.png"
],
"download_links": [ // 下载链接列表
{
"name": "网盘下载",
"url": "https://pan.example.com/xxx"
},
{
"name": "项目地址",
"url": "https://github.com/xxx/xxx"
}
]
}
/data/latest.json
获取网站最新发布或更新的一篇文章信息
{
"title": "[WIN] Win95 重生版 - 基于 Electron 制作",
"date": "2025-02-19T10:53:29",
"lastmod": "2025-02-19T10:53:29",
"url": "https://xiaoyi.vc/electron-win95.html",
"author": "小羿先森",
"category": ["Windows", "怀旧"],
"views": 1234,
"text_content": "一款基于 Electron 制作的 Win95 系统重生版...",
"images": [
"https://xiaoyi.vc/wp-content/uploads/2025/02/20250219-3.png"
],
"download_links": [
{
"name": "网盘下载",
"url": "https://pan.quark.cn/s/7e8840813dbc"
},
{
"name": "项目地址",
"url": "https://github.com/felixrieseberg/windows95"
}
]
}
/data/all.json
获取所有年份的文章统计和索引信息
data/
├── all.json # 总索引文件
├── YYYY/
│ ├── index.json # 年度索引
│ └── MM/
│ ├── index.json # 月度索引
│ └── DD/ # 日期文件夹
│ ├── index.json # 当日索引
│ └── articles/ # 文章文件夹
/{year}
返回指定年份的所有月份文章索引
| 参数 | 类型 | 说明 |
|---|---|---|
| year | string | 年份,格式:YYYY |
/{year}/{month}
返回指定月份的所有文章索引
| 参数 | 类型 | 说明 |
|---|---|---|
| year | string | 年份,格式:YYYY |
| month | string | 月份,格式:MM |
/{year}/{month}/{day}
返回指定日期的所有文章列表
| 参数 | 类型 | 说明 |
|---|---|---|
| year | string | 年份,格式:YYYY |
| month | string | 月份,格式:MM |
| day | string | 日期,格式:DD |
/data/latest.json 获取最新文章/data/all.json 获取年份列表/data/YYYY/index.json/data/YYYY/MM/index.json每篇文章包含以下信息: