Issue 180 - Distill Bugfix (#182)

* dark_mode.js was not being loaded on distill blog pages.
* Moved dark_mode.js and jquery.html to head.html to simplify/standardize dark mode/theming for other pages.
This commit is contained in:
JD 2021-01-14 11:45:47 -08:00 committed by GitHub
parent 6b28f901fb
commit 40921e4f54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 4 deletions

View File

@ -33,9 +33,14 @@
<link rel="canonical" href="{{ page.url | replace:'index.html','' | relative_url }}">
<!-- JQuery -->
{% include scripts/jquery.html %}
<!-- Theming-->
{% if site.enable_darkmode %}
<script src="{{ '/assets/js/theme.js' | relative_url }}"></script>
<!-- Load DarkMode JS -->
<script src="{{ '/assets/js/dark_mode.js' | relative_url }}"></script>
{% endif %}
{% if site.enable_google_analytics %}

View File

@ -8,6 +8,3 @@ $(function () {$('[data-toggle="tooltip"]').tooltip()})
<!-- Load Common JS -->
<script src="{{ '/assets/js/common.js' | relative_url }}"></script>
<!-- Load DarkMode JS -->
<script src="{{ '/assets/js/dark_mode.js' | relative_url }}"></script>

View File

@ -24,7 +24,6 @@
</body>
{% include scripts/jquery.html %}
{% include scripts/bootstrap.html %}
{% include scripts/mansory.html %}
{% include scripts/misc.html %}