Skip to content

RSS 订阅支持#49

Open
Yao1OoO wants to merge 4 commits intoAlittfre:mainfrom
Yao1OoO:main
Open

RSS 订阅支持#49
Yao1OoO wants to merge 4 commits intoAlittfre:mainfrom
Yao1OoO:main

Conversation

@Yao1OoO
Copy link

@Yao1OoO Yao1OoO commented May 18, 2025

使用 vitepress-plugin-rss 支持了 RSS 订阅,依赖于 vitepress-plugin-rss,build 后会在 dist 中生成 feed.rss 文件。

在实现过程中有几个问题:

  1. vitepress-plugin-rss 由于实现了一个在社交媒体列表中加入 RSS 订阅图标的功能,依赖于 themeConfig.socialLinks,但是这个主题对应的 array 名称为 soical,会无法正常 build。我参考了 VitePress 文档 中社交媒体信息 array 的名称是 socialLinks,所以重构了所有 social -> socialLinks,可以正常生成 dist。

  2. 由于渲染社交媒体图标依赖于 iconfont,加入 RSS 订阅图标功能没有正常实现,看了下似乎不好在不动插件源码的情况下修复,所以感觉直接在 socialLinks 中加入新的条目解决就好了。另外 iconfont 还没有 RSS 的图标,后续还需要添加。

@vercel
Copy link

vercel bot commented May 18, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
vitepress-theme-bluearchive ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 18, 2025 10:31am

@Alittfre
Copy link
Owner

RSS直接加在页脚感觉更好一点,类似这样,也不用图标了。
屏幕截图 2025-05-20 230645

@ATQQ
Copy link

ATQQ commented Nov 15, 2025

@Yao1OoO 前段时间才收到反馈,构建报错,确实是写了个bug

https://github.com/ATQQ/sugar-blog/pull/379/files

如果不需要图标的话 把 Icon 设置为 false 也能避免这个报错

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments