summaryrefslogtreecommitdiff
path: root/layouts/_partials/scripts.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_partials/scripts.html')
-rw-r--r--layouts/_partials/scripts.html43
1 files changed, 0 insertions, 43 deletions
diff --git a/layouts/_partials/scripts.html b/layouts/_partials/scripts.html
deleted file mode 100644
index 5d782dd7..00000000
--- a/layouts/_partials/scripts.html
+++ /dev/null
@@ -1,43 +0,0 @@
-<!-- Theme Switch -->
-<script>
-document.addEventListener("DOMContentLoaded", () => {
- const themeSelect = document.getElementById('theme-select')
- themeSelect.value = localStorage.getItem('geedeapro.theme')
- themeSelect.onchange = () => switchTheme(themeSelect.value, true)
-})
-</script>
-
-<!-- global JS -->
-{{ $commonJS := slice
- (resources.Get "js/tooltip.js")
- (resources.Get "js/instantpage.min.js")
-}}
-{{ $commonBundle := $commonJS | resources.Concat "js/common-bundle.js" | minify | fingerprint }}
-<script src="{{ $commonBundle.RelPermalink }}" integrity="{{ $commonBundle.Data.Integrity }}" defer></script>
-
-<!-- content page only JS -->
-{{ if not .IsHome }}
- {{ $articleJS := slice
- (resources.Get "js/toc.js")
- (resources.Get "js/back2top.js")
- (resources.Get "js/fediform.js")
- }}
- {{ $articleBundle := $articleJS | resources.Concat "js/article-bundle.js" | minify | fingerprint }}
- <script src="{{ $articleBundle.RelPermalink }}" integrity="{{ $articleBundle.Data.Integrity }}" defer></script>
-{{ end }}
-
-<!-- libra.js -->
-<script type="module">
-document.addEventListener('DOMContentLoaded', async () => {
- const { default: LightBox } = await import('/js/libra.min.js');
- const lightbox = new LightBox({
- offset: { x: -8, y: -48 },
- selector: "[data-libra]:not(.disable-libra *)",
- });
-});
-</script>
-
-<!-- GoatCounter -->
-<script data-goatcounter="https://stats.geedea.pro/count"
- async src="//stats.geedea.pro/count.js"></script>
-