diff options
author | AmazingRise <8315221+AmazingRise@users.noreply.github.com> | 2022-07-26 18:10:45 +0300 |
---|---|---|
committer | AmazingRise <8315221+AmazingRise@users.noreply.github.com> | 2022-07-26 18:10:45 +0300 |
commit | 9f527cd28ce76205858011c9c97b30eb8e10393d (patch) | |
tree | a55a6c64d63e217ac708485e7baa0336e24a11cf | |
parent | bc2908bd710e0f35ea10184b5badf9205c34a35c (diff) |
Update Waline v2
-rw-r--r-- | layouts/partials/comment.html | 5 | ||||
-rw-r--r-- | layouts/partials/head.html | 7 |
2 files changed, 8 insertions, 4 deletions
diff --git a/layouts/partials/comment.html b/layouts/partials/comment.html index 8514492..372df17 100644 --- a/layouts/partials/comment.html +++ b/layouts/partials/comment.html @@ -60,11 +60,12 @@ twikoo.init({ {{ if .Site.Params.walineServer }} <div id="waline"></div> <script> - new Waline({ + Waline.init({ el: '#waline', - path: location.pathname, + //path: location.pathname, serverURL: {{.Site.Params.walineServer}} , }); + </script> {{ end }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index c77986f..aa7c9b2 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -128,8 +128,11 @@ {{ end }} {{ if and (.Site.Params.walineServer) (.IsPage) }} -<script src="//cdn.jsdelivr.net/npm/@waline/client/dist/Waline.min.js"></script> - +<script src="https://unpkg.com/@waline/client@v2/dist/waline.js"></script> + <link + rel="stylesheet" + href="https://unpkg.com/@waline/client@v2/dist/waline.css" + /> {{ end }} <!-- head custom --> |