From e3764d119ed418e2e8ad72f8403a76331fed8f4b Mon Sep 17 00:00:00 2001 From: TeacherDu <46226528+penndu@users.noreply.github.com> Date: Fri, 22 Dec 2023 07:08:21 +0000 Subject: [PATCH] BREAKING CHANGE:Update Artalk Version to 2.7.2 --- _cdn.yml | 4 ++-- layout/_plugins/comments/artalk/script.ejs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/_cdn.yml b/_cdn.yml index 3a25217e2..ecc2d31b8 100644 --- a/_cdn.yml +++ b/_cdn.yml @@ -270,14 +270,14 @@ busuanzi: artalk_js: name: artalk file: dist/Artalk.js - version: 2.6.4 + version: 2.7.2 npm: true static: false cdnjs: true artalk_css: name: artalk file: dist/Artalk.css - version: 2.6.4 + version: 2.7.2 npm: true static: false cdnjs: true diff --git a/layout/_plugins/comments/artalk/script.ejs b/layout/_plugins/comments/artalk/script.ejs index 5971e4d57..f3a860cf7 100644 --- a/layout/_plugins/comments/artalk/script.ejs +++ b/layout/_plugins/comments/artalk/script.ejs @@ -24,7 +24,7 @@ path = path.replaceAll('/index.html', '/').replaceAll('.html', '') } - volantis.artalk = new Artalk(Object.assign(<%- JSON.stringify(theme.comments.artalk) %>, { + Artalk.init(Object.assign(<%- JSON.stringify(theme.comments.artalk) %>, { el: '#artalk_container', pageKey: path, pageTitle: document.title,