summaryrefslogtreecommitdiff
path: root/layout/_partial/scripts.ejs
blob: 662702ad14b8d2ccef27c925301d71e17bbc8920 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!-- Lazyload support -->
<% if (theme.lazyload) { %>
    <script defer src="https://cdn.jsdelivr.net/npm/vanilla-lazyload/dist/lazyload.min.js"></script>
    <script>
        window.lazyLoadOptions = {
            elements_selector: ".lazy",
            threshold: 0
        };
    </script>
<% } %>

<!-- Darkmode support -->
<script defer src="https://cdn.jsdelivr.net/npm/darkmode-js/lib/darkmode-js.min.js"></script>

<!-- Highlight.js support -->