-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
984ce27
commit a4b77d2
Showing
4 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<link href="https://unpkg.com/@waline/client@v3/dist/waline.css" rel="stylesheet" /> | ||
<script src="https://unpkg.com/@waline/client@v3/dist/waline.js"></script> | ||
|
||
<div id="waline"></div> | ||
<script type="module"> | ||
import { init } from 'https://unpkg.com/@waline/client@v3/dist/waline.js'; | ||
init({ | ||
el: '#waline', | ||
meta: ['nick','mail','link'], // 评论属性 | ||
requiredMeta: ['nick','mail'], // 必填项,昵称与邮件 | ||
login: 'force', // 登录后访问 | ||
comment: true, // 评论数统计 | ||
placeholder: '欢迎评论', // 评论框占位提示符 | ||
serverURL: "https://blogwaline-jog2tc2g2-mortyzhaoys-projects.vercel.app/", // Waline 服务端地址 | ||
avatar: "wavatar", // 头像 | ||
avatarCDN: "https://sdn.geekzu.org/avatar/", // 头像cdn | ||
pageSize: 10, // 评论每页条数 | ||
lang: "zh-CN", // 语言 | ||
visitor: true, // 文章访问量统计 | ||
highlight: true, // 代码高亮 | ||
uploadImage: false, // 评论上传图片功能 | ||
emoji: "https://cdn.jsdelivr.net/gh/walinejs/[email protected]/weibo" // emoji 表情包 | ||
}) | ||
</script> |