add artalk.js

This commit is contained in:
2022-07-06 15:47:20 +08:00
parent e245893f1b
commit ce1c87a5d1
2 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
<!-- CSS -->
<link href="http://127.0.0.1:23333/dist/Artalk.css" rel="stylesheet">
<!-- JS -->
<script src="http://127.0.0.1:23333/dist/Artalk.js"></script>
<!-- Artalk -->
<div id="Comments"></div>
<script>
new Artalk({
el: '#Comments', // 绑定元素的 Selector
pageKey: 'index.html', // 固定链接 (留空自动获取)
pageTitle: '关于引入 Artalk 这档子事', // 页面标题 (留空自动获取)
server: 'http://127.0.0.1:23333', // 后端地址
site: '默认站点', // 你的站点名
})
</script>