move js to custom.js

This commit is contained in:
Christoph J. Scherr 2023-10-01 02:10:58 +02:00
parent ed75a20862
commit 05ade38f2f
1 changed files with 1 additions and 6 deletions

View File

@ -14,12 +14,6 @@
<link rel="stylesheet" href="/static/codehighlight.css"> <link rel="stylesheet" href="/static/codehighlight.css">
<link rel="stylesheet" href="/static/custom.css"> <link rel="stylesheet" href="/static/custom.css">
{% endcompress %} {% endcompress %}
<script>
const setTheme = theme => {
document.documentElement.setAttribute('data-bs-theme', theme)
}
setTheme(localStorage.getItem('theme'));
</script>
{% block headscripts %} {% block headscripts %}
{% endblock headscripts %} {% endblock headscripts %}
</head> </head>
@ -108,6 +102,7 @@
</div> </div>
</footer> </footer>
{% compress js %} {% compress js %}
<script src="/static/custom.js"></script>
<script src="/static/bs5/dist/js/bootstrap.bundle.min.js"></script> <script src="/static/bs5/dist/js/bootstrap.bundle.min.js"></script>
{% endcompress %} {% endcompress %}
</body> </body>