diff options
| author | Eltrac <hi@guhub.cn> | 2025-01-06 09:50:55 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-01-06 09:50:55 +0800 |
| commit | 9e1fb0181ca828d96e0cd8cd3a34b981e09e0a18 (patch) | |
| tree | 05e64ee5fbf64dda9fad205013c5232c1a8ec969 /layouts | |
| parent | 791ae47cac02b0744a018e511da141b5853949e9 (diff) | |
chore: remove unused waline script
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/partials/scripts.html | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index 746134be..37a427c6 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -3,29 +3,6 @@ <script src="{{ $.Site.Params.staticPrefix }}{{ . | relURL }}"></script> {{- end }} <script type="module"> -import { init } from 'https://unpkg.com/@waline/client@v3/dist/waline.js'; - -/* === waline === */ - -function loadWalineComment() { - // terminate if no waline container is found - const container = document.getElementById("waline"); - if (!container) return; - - // initialize waline - const path_suffix = window.location.pathname.endsWith('/') ? '' : '/'; - waline_options.path = window.location.pathname + path_suffix; - try { - init(waline_options); - } catch (error) { console.log(error) } - - // track waline button events - const walineButton = document.querySelector("#waline > div > div.wl-comment > div > div.wl-footer > div.wl-info > button.primary.wl-btn"); - walineButton.addEventListener("click", () => umami.track("Comment")); -} - -loadWalineComment(); - /* === lazyload === */ var lazyLoadInstance = new LazyLoad(); lazyLoadInstance.update(); |
