From 91641646a726665a253a71837d206c19565e6479 Mon Sep 17 00:00:00 2001 From: DreamyTZK Date: Sun, 17 Jul 2022 14:31:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20artalk=E8=AF=84=E8=AE=BAoption=E6=97=A0?= =?UTF-8?q?=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layout/includes/third-party/comments/artalk.pug | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layout/includes/third-party/comments/artalk.pug b/layout/includes/third-party/comments/artalk.pug index db117f5..97a5cd5 100644 --- a/layout/includes/third-party/comments/artalk.pug +++ b/layout/includes/third-party/comments/artalk.pug @@ -1,4 +1,4 @@ -- const { server, site } = theme.artalk +- const { server, site, option } = theme.artalk script. function addArtalkSource () { @@ -10,14 +10,14 @@ script. function loadArtalk () { function initArtalk () { - window.artalkItem = new Artalk({ + window.artalkItem = new Artalk(Object.assign({ el: '#artalk-wrap', server: '!{server}', site: '!{site}', pageKey: location.pathname, darkMode: document.documentElement.getAttribute('data-theme') === 'dark', countEl: '.artalk-count' - }) + },!{JSON.stringify(option)})) } if (typeof window.artalkItem === 'object') setTimeout(()=>{initArtalk()},200)