一、Artitalk.js
基于 LeanCloud 实现的可实时发布说说/微语的 js
- 快速门
- drew叔的博客 :说说、cndrew
- cungudafa:cungudafa的说说页面
二、 设置参数
1.申请leancloud国际版账号
- 前往leancloud国际版,注册账号
- 创建应用,并验证手机号
2.配置
- 点击设置
- 添加用户
存储->结构化数据->_User
3. 权限设置存储 -> 结构化数据 -> _User -> 权限
前四个都修改设置为指定用户
、用户名
最终效果
4. 获取应用KeysAppID
、AppKey
5. 设置安全域名
三、Butterfly主题配置
- 1. 导航栏配置
2. 创建页面
`hexo new page artitalk`
// index.md
---
title: artitalk
date: 2021-01-13 09:56:11
type: 'artitalk'
comments: 'false'
top_img: // 页面封面
---
<!-- 引用 artitalk -->
<script type="text/javascript" src="https://unpkg.com/artitalk"></script>
<!-- 存放说说的容器 -->
<div id="artitalk_main"></div>
<script>
new Artitalk({
appId: '', // Your LeanCloud appId
appKey: '' // Your LeanCloud appKey
})
</script>