summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/partials/scripts.html23
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();