Try moving darkmode up
This commit is contained in:
parent
c3d86ae28a
commit
6bd15ded9c
2 changed files with 6 additions and 5 deletions
|
@ -422,7 +422,3 @@ $(function() {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
if (localStorage.getItem("darkmode") === "true") {
|
|
||||||
DarkReader.enable();
|
|
||||||
}
|
|
||||||
|
|
|
@ -74,6 +74,11 @@
|
||||||
<link rel="stylesheet" type="text/css" href="{{ static('markdown.css') }}">
|
<link rel="stylesheet" type="text/css" href="{{ static('markdown.css') }}">
|
||||||
<script src="https://unpkg.com/@popperjs/core@2"></script>
|
<script src="https://unpkg.com/@popperjs/core@2"></script>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/darkreader@4.9.58/darkreader.min.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/darkreader@4.9.58/darkreader.min.js"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
if (localStorage.getItem("darkmode") === "true") {
|
||||||
|
DarkReader.enable();
|
||||||
|
}
|
||||||
|
</script>
|
||||||
{% compress js %}
|
{% compress js %}
|
||||||
<script>{{ inlinei18n(LANGUAGE_CODE)|safe }}</script>
|
<script>{{ inlinei18n(LANGUAGE_CODE)|safe }}</script>
|
||||||
{% if INLINE_JQUERY %}
|
{% if INLINE_JQUERY %}
|
||||||
|
|
Loading…
Reference in a new issue