为Astro添加NeoDB卡片
前言
使用请遵循CC-BY-NC-SA 4.0
如何使用?
- 本博客的Github存储库获取:
/src/components/mdrenders/remark-neodb-card.mjs
或点击跳转 - 创建
remark-neodb-card.mjs
,复制第一步的代码并在astro.config.mjs
添加:
- 使用方式为
++类别/ID++
,你可以通过复制某个NeoDB的链接来得到.例如:https://neodb.social/movie/2O7n5MUqKupr9wtmAflybI
, 其中movie/2O7n5MUqKupr9wtmAflybI
就是类别和条目ID, 这意味着你只需要复制https://neodb.social/
后面的部分并在两端带上++
就可以使用.
演示(安利)环节
⬆︎Say something to me.⬆︎