惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

N
News and Events Feed by Topic
GbyAI
GbyAI
博客园 - Franky
宝玉的分享
宝玉的分享
Blog — PlanetScale
Blog — PlanetScale
Google DeepMind News
Google DeepMind News
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
人人都是产品经理
人人都是产品经理
Microsoft Azure Blog
Microsoft Azure Blog
The Register - Security
The Register - Security
腾讯CDC
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
I
InfoQ
The Cloudflare Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Engineering at Meta
Engineering at Meta
MongoDB | Blog
MongoDB | Blog
有赞技术团队
有赞技术团队
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
F
Full Disclosure
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Vercel News
Vercel News
博客园 - 【当耐特】
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
S
Schneier on Security
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Project Zero
Project Zero
量子位
M
MIT News - Artificial intelligence
Stack Overflow Blog
Stack Overflow Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
美团技术团队
Attack and Defense Labs
Attack and Defense Labs
C
Cybersecurity and Infrastructure Security Agency CISA
T
The Blog of Author Tim Ferriss
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
T
Troy Hunt's Blog
Google Online Security Blog
Google Online Security Blog
罗磊的独立博客
P
Proofpoint News Feed
Schneier on Security
Schneier on Security
Spread Privacy
Spread Privacy
S
SegmentFault 最新的问题
L
LINUX DO - 最新话题
Simon Willison's Weblog
Simon Willison's Weblog
爱范儿
爱范儿
博客园 - 聂微东
A
About on SuperTechFans
PCI Perspectives
PCI Perspectives
D
Docker

瓠樽

靜態博客的『阿喀琉斯之踵』 部署 Artalk 評論系統 林路行 利用脚本抓取 RSS 并用票据机打印 moe-counter-cf 安装手记 Soapbox-fe 安装手记 俳句练习其一 关于 RSS 协议的一些迷思 花火下的恋情
Jekyll 更改 RSS 模版文件以验证 follow 阅读器
2024-12-09 · via 瓠樽

前言

最近在 Patrick 的邀请下尝试了一下 follow 阅读器,除了浓浓的 Web3 气息外,其它各方面都算得上相当优秀的产品。阅读器还支持验证订阅源的所有权,不过需要在 RSS 输出上进行操作,这里就写一篇粗浅的教程。

所有权验证

follow 阅读器验证博客的所有权是需要在 RSS 源里额外增加用于验证的<follow_challenge>标签,这个标签里包含<feedId><userId>两个元素。

Jekyll 可以通过更改 RSS 模版文件来实现。Jekyll 的 RSS 模版文件一般在根目录,文件名是feed.xml。我这边是在<description><link>之间添加了<follow_challenge>标签。修改完成之后的代码如下:

  <description>以瓠為樽而浮乎江湖</description>
    <follow_challenge>
      <feedId>*****************</feedId>
      <userId>*****************</userId>
    </follow_challenge>
  <link>https://blog.dylanwu.space/</link>

修改完成后生成并更新网站,就可以在 follow 阅读器里右击自己的订阅选择验证。其它一些类似的静态博客生成器应该也可以这样操作。

写在最后

好久没有翻博客的评论了,今天一看,在之前一篇简述 RSS 协议的文章里有很多评论还是在列举 RSS 协议的“缺点”,我觉得应该是我那篇文章写得不够清楚,因为当时想得也不够清晰。

但是在使用 follow 阅读器后,我的看法越来越明晰了——RSS 协议作为一个文本输出的接口本身并没有什么问题,问题是围绕这个接口的实现极度匮乏。而 follow 阅读器可以说极大弥补了这种匮乏。

注意,这里说的“匮乏”并不是协议本身功能上的问题,而是围绕这个协议的开发实现的匮乏。打算后面有空再写一篇关于 RSS 协议的文章,这里先把观点摆出来。