DoIt icon indicating copy to clipboard operation
DoIt copied to clipboard

[FEATURE] 关于增加输出feed.json的请求

Open yeahwong opened this issue 1 year ago • 0 comments

Describe the feature you want 描述你的功能需求

目前Doit主题中的index.json是给搜索功能使用,并不能输出符合JSON Feed规范的feed.json文件。

由于JSON是一种跨平台的数据格式,与xml相比,具有更好的扩展性,feed.json可以在各种设备和平台上进行解析和处理,不少服务和app又是读取feed.json来抓取整个的文章列表、内容。

Hugo也内置了输出feed.json的功能,希望考虑支持增加输出符合JSON Feed规范的feed.json的功能。

谢谢开发者。

Useful reference 有价值的参考

JSON Feed Version 1 https://www.jsonfeed.org/version/1/

Custom Output Formats https://gohugo.io/templates/output-formats/

yeahwong avatar Mar 07 '23 14:03 yeahwong