diff options
| author | eltrac <hi@eltr.ac> | 2026-04-07 14:53:17 +0800 |
|---|---|---|
| committer | eltrac <hi@eltr.ac> | 2026-04-07 14:53:17 +0800 |
| commit | 10431bd8f5ff71690ae4e5444e8d7894fd401ae5 (patch) | |
| tree | 62b7fd1b6c1f68d2804f380eb522bcebeb2c8d9f /layouts/_partials/scripts.html | |
| parent | 3e0edacc4a0cafa53ede57ebb6f0378c93f3123b (diff) | |
chore: move templates out of site repo
Diffstat (limited to 'layouts/_partials/scripts.html')
| -rw-r--r-- | layouts/_partials/scripts.html | 43 |
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> - |
