项目重制了,旧项目的备份位于RavelloH/news-archive
新版的EverydayNews,存储2022/06/04至今的所有每日60s新闻,以JSON格式存放,每日更新,自带搜索功能,可RSS订阅。
预览:https://ravelloh.github.io/EverydayNews
国内加速地址:https://news.ravelloh.top
页面保留了原有的查询参数,同时重构为 React/Vite 界面。你可以使用查询参数自定义页面:
- date: https://ravelloh.github.io/EverydayNews?date=20230101
- style: https://ravelloh.github.io/EverydayNews?style=clean
- footer: https://ravelloh.github.io/EverydayNews?footer=none
- color: https://ravelloh.github.io/EverydayNews?backgroundColor=111111&textColor=ffffff
例如:
- 简化布局: https://ravelloh.github.io/EverydayNews?style=clean
- 仅显示新闻: https://ravelloh.github.io/EverydayNews?style=clean&footer=none
- 暗色模式: https://ravelloh.github.io/EverydayNews?style=clean&backgroundColor=111111&textColor=ffffff
非常适合使用iframe挂载(亮色/暗色)
<iframe src="https://ravelloh.github.io/EverydayNews?style=clean" width="600" height="800" frameborder="0"></iframe><iframe src="https://ravelloh.github.io/EverydayNews?style=clean&backgroundColor=111111&textColor=ffffff" width="600" height="800" frameborder="0"></iframe>你也可以在上面链接最后加入&footer=none来去除页脚:
<iframe src="https://ravelloh.github.io/EverydayNews?style=clean&footer=none" width="600" height="800" frameborder="0"></iframe><iframe src="https://ravelloh.github.io/EverydayNews?style=clean&backgroundColor=111111&textColor=ffffff&footer=none" width="600" height="800" frameborder="0"></iframe>与v1相同,仍提供API用于获取某日期的新闻:
- 最新:
https://ravelloh.github.io/EverydayNews/latest.jsonhttps://news.ravelloh.top/latest.json
- 特定日期:
https://ravelloh.github.io/EverydayNews/data/YYYY/MM/DD.jsonhttps://news.ravelloh.top/data/YYYY/MM/DD.json- 例:
https://news.ravelloh.top/data/2025/01/01.json
内容格式:
{
"date": "2025/01/01",
"content": [
"xxxxxxxxxx",
"xxxxxxxxxx",
"xxxxxxxxxx",
]
}RSS订阅地址:
https://ravelloh.github.io/EverydayNews/rss.xmlhttps://news.ravelloh.top/rss.xml
目前正在使用 vikiboss/60s-static-host 的静态 JSON 作为数据源, 使用 RavelloH/index-search作为静态搜索工具, 使用Github Actions进行每日更新。
npm install
npm run dev生产构建使用 npm run build,会生成包含页面、新闻数据和搜索索引的 dist 目录。
