Skip to content

Commit

Permalink
Issue 180 - Distill Bugfix (#182)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
JD authored Jan 14, 2021
1 parent 6b28f90 commit 40921e4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 5 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down
3 changes: 0 additions & 3 deletions _includes/scripts/misc.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,3 @@

<!-- 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>
1 change: 0 additions & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

</body>

{% include scripts/jquery.html %}
{% include scripts/bootstrap.html %}
{% include scripts/mansory.html %}
{% include scripts/misc.html %}
Expand Down

0 comments on commit 40921e4

Please sign in to comment.