blob: 6ad03632204f92db423c6f411a43486968dff4fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
<!-- global JS -->
{{ $commonJS := slice
(resources.Get "js/tooltip.js")
(resources.Get "js/instantpage.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: -80 } });
});
</script>
<!-- GoatCounter -->
<script data-goatcounter="https://stats.geedea.pro/count"
async src="//stats.geedea.pro/count.js"></script>
|