hexo-theme-redefine
hexo-theme-redefine copied to clipboard
[功能建议]:添加artalk评论系统
功能描述
添加 artalk 评论 #503
https://artalk.js.org
图片描述
优先级
中(较为重要)
补充信息
前端集成
<!-- CSS -->
<link href="http://artalk.example.com:8080/dist/Artalk.css" rel="stylesheet" />
<!-- JS -->
<script src="http://artalk.example.com:8080/dist/Artalk.js"></script>
<!-- Artalk -->
<div id="Comments"></div>
<script>
Artalk.init({
el: '#Comments', // 绑定元素的 Selector
pageKey: '/post/1', // 固定链接
pageTitle: '关于引入 Artalk 的这档子事', // 页面标题 (留空自动获取)
server: 'http://artalk.example.com:8080', // 后端地址
site: 'Artalk 的博客', // 你的站点名
})
</script>
最初由 @ToothlessHaveBun 在 https://github.com/EvanNotFound/hexo-theme-redefine/issues/419 发布