move js to custom.js
This commit is contained in:
parent
ed75a20862
commit
05ade38f2f
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue