jerryc127 / hexo-theme-butterfly

🦋 A Hexo Theme: Butterfly
https://butterfly.js.org
Apache License 2.0
7.12k stars 1.28k forks source link

[Feature]: 动态友链 #1093

Closed xlenco closed 1 year ago

xlenco commented 1 year ago

想要的功能 | What feature do you want?

动态友链功能。静态博客每次添加友链都要部署,比较麻烦。发现hexo-theme-stellar主题的动态友链方案较好,可以参考一下。

https://github.com/xaoxuu/issues-json-generator 利用github issues实现无后端 https://raw.githubusercontent.com/xlenco/friends/output/v2/data.json https://github.com/xaoxuu/hexo-theme-stellar/blob/main/scripts/tags/friends.js 外挂标签hexo-theme-stellar主题可参考 https://xaoxuu.com/wiki/stellar/tag-plugins/#%E5%AE%9E%E7%8E%B0%E5%8A%A8%E6%80%81%E5%8F%8B%E9%93%BE#实现动态友链 hexo-theme-stellar,Volantis等主题已实现动态友链功能

jerryc127 commented 1 year ago

主题支持通过远程拉取 json 文件 生成友链啊

看文档 https://butterfly.js.org/posts/dc584b87/#%E5%89%B5%E5%BB%BA%E5%8F%8B%E6%83%85%E9%8F%88%E6%8E%A5%E9%A0%81%E9%9D%A2

至于怎么去生成这个json 文件 那是你们自己的事了

xlenco commented 1 year ago

感谢大佬提醒,搞好了。