Skip to content

Commit 571f9d9

Browse files
committed
feat(js): add local three.js module
Signed-off-by: Aritra Dey <adey01027@gmail.com>
1 parent 0cf5680 commit 571f9d9

File tree

4 files changed

+53426
-829
lines changed

4 files changed

+53426
-829
lines changed

layouts/home.html

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,15 @@ <h1>istio.io Archives</h1>
1515
</div>
1616
</main>
1717
{{ else }}
18-
<script src="/js/three.min.js"></script>
18+
<script type="importmap">
19+
{
20+
"imports": {
21+
"three": "/js/three.module.js"
22+
}
23+
}
24+
</script>
1925
<script src="/js/splide.min.js"></script>
26+
<script src="/js/splide-extension-auto-scroll.min.js"></script>
2027
<link rel="stylesheet" href="/css/splide.min.css">
2128
<script>
2229
document.addEventListener("DOMContentLoaded", function(event) {
@@ -37,7 +44,7 @@ <h1>istio.io Archives</h1>
3744
},
3845
},
3946
pagination: false,
40-
}).mount( window.splide.Extensions );
47+
}).mount( window.Splide.Extensions );
4148
});
4249
</script>
4350

static/js/splide-extension-auto-scroll.min.js

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)