Skip to content

Commit 2103191

Browse files
committed
fix: script code should be in head or body, not in between
1 parent 5d85ccb commit 2103191

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

_includes/head.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,7 @@
8787

8888
<script src="{{ site.data.assets[origin].jquery.js }}"></script>
8989

90+
{% unless site.theme_mode %}
91+
{% include mode-toggle.html %}
92+
{% endunless %}
9093
</head>

_layouts/default.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@
1919

2020
{% include head.html %}
2121

22-
{% unless site.theme_mode %}
23-
{% include mode-toggle.html %}
24-
{% endunless %}
25-
2622
<body data-spy="scroll" data-target="#toc" data-topbar-visible="true">
2723

2824
{% include sidebar.html %}

0 commit comments

Comments
 (0)