From f6ee244ae29df6ba4c38a418114043f5a844daf3 Mon Sep 17 00:00:00 2001 From: zryyyy <1931860504@qq.com> Date: Sun, 22 Sep 2024 16:04:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dwaline=20v3=E7=9A=84?= =?UTF-8?q?=E5=BC=95=E5=85=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Waline v3 的使用方式发生了变化,需要通过 import 引入并使用 init 函数来初始化,而不是直接使用全局的 Waline 对象。 --- layout/_plugins/comments/waline/script.ejs | 41 ++++++++++++---------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/layout/_plugins/comments/waline/script.ejs b/layout/_plugins/comments/waline/script.ejs index 906757676..d95da1473 100644 --- a/layout/_plugins/comments/waline/script.ejs +++ b/layout/_plugins/comments/waline/script.ejs @@ -1,8 +1,11 @@ - \ No newline at end of file + volantis.css('<%= theme.cdn.waline_css %>'); + volantis.js('<%- theme.cdn.waline_js %>').then(p_waline); +