up
999
date
‣
vip
slug
0816114105
type
Post
CreatedTime
Aug 16, 2023 03:41 AM
status
Published
tags
Code
summary
Notion不仅能做BLOG,还能制做自己的评论系统?
Link
category
Notion
password
IP
999
Email
用Notion做自己BLOG的评论系统
Notion不仅能做BLOG,还能制做自己的评论系统?
- 建立一个单独的database,把databaseid写入的blog.config.
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fab16bdff-8d3a-4496-a003-4372ba51778e%2FScreenshot_2023-08-16_at_11.54.21.png?table=block&id=867a53b5-3e45-4d8a-8d75-9c6c314ec0b5&cache=v2)
- 标题用下面的图片,目前只有5个字段,
- 2023.08.23新增Email字段,9.1新增一ip字段(文本类型)
- Name 储存blog的pageid
- Ren 储存 昵称
- Text 储存 comment
- Title 储存 blog的page title
- Email,用来取得头像
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F3f9e6e54-c3e5-427c-9f8b-a590aff9daac%2FScreenshot_2023-08-23_at_19.13.26.png?table=block&id=ff5df38a-fdb3-4b19-9304-8f79b014ae82&cache=v2)
![notion image](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F3566433a-a75e-4eaf-8068-4da17d0ff217%2Fb245b1bd-6055-4ec2-b890-2910f36bb117%2FScreenshot_2023-09-11_at_09.20.34.png?table=block&id=76656695-0806-43da-b06c-165f954487b6&cache=v2)
- 没有邮件认证, 没有内容审核.
需要刷新一下才能看到提交的评论……….加了一个缓存, ok了
- 增加头像功能, 引入Gravatar头像系统…,顺手把QQ头像也加上了……2023.08.23
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fa32c31b5-e2f7-4a2f-8778-7557a21867c3%2FScreenshot_2023-08-23_at_18.55.52.png?table=block&id=58561a5c-8c35-4662-9e47-b333a8e5cca2&cache=v2)
- 最近比较火的gpt等也是使用这一套头像系统的.如果没有的话注册一下就可以用了.
Gravatar是一项用于提供在全球范围内使用的头像服务。只要你在Gravatar的服务器上上传了你自己的头像,你便可以在其他任何支持Gravatar的博客、论坛等地方使用它。