Skip to content

Commit

Permalink
Add missing type to script tags in layouts (#1747)
Browse files Browse the repository at this point in the history
  • Loading branch information
juujisai authored Jun 30, 2023
1 parent db61362 commit 7cfe2c2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
4 changes: 1 addition & 3 deletions site/layouts/general/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
{{ partial "footer/footer-docs.html" . }}

{{ if ne $hidden_sidenav true }}
<script>
<script type="module">
const sidenav = document.getElementById("sidenav-main");
const sidenavInstance = te.Sidenav.getInstance(sidenav);

Expand All @@ -143,8 +143,6 @@
}
};

setMode();

// Event listeners
window.addEventListener("resize", setMode);
</script>
Expand Down
4 changes: 1 addition & 3 deletions site/layouts/general/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
{{ partial "footer/footer-docs.html" . }}

{{ if ne $hidden_sidenav true }}
<script>
<script type="module">
const sidenav = document.getElementById("sidenav-main");
const sidenavInstance = te.Sidenav.getInstance(sidenav);

Expand All @@ -84,8 +84,6 @@
}
};

setMode();

// Event listeners
window.addEventListener("resize", setMode);
</script>
Expand Down
4 changes: 1 addition & 3 deletions site/layouts/how-to/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
{{ partial "footer/footer-docs.html" . }}

{{ if ne $hidden_sidenav true }}
<script>
<script type="module">
const sidenav = document.getElementById("sidenav-main");
const sidenavInstance = te.Sidenav.getInstance(sidenav);

Expand All @@ -143,8 +143,6 @@
}
};

setMode();

// Event listeners
window.addEventListener("resize", setMode);
</script>
Expand Down
4 changes: 1 addition & 3 deletions site/layouts/how-to/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ <h1 class="mt-0 text-5xl font-bold leading-normal">
{{ partial "footer/footer-docs.html" . }}

{{ if ne $hidden_sidenav true }}
<script>
<script type="module">
const sidenav = document.getElementById("sidenav-main");
const sidenavInstance = te.Sidenav.getInstance(sidenav);

Expand All @@ -254,8 +254,6 @@ <h1 class="mt-0 text-5xl font-bold leading-normal">
}
};

setMode();

// Event listeners
window.addEventListener("resize", setMode);
</script>
Expand Down

0 comments on commit 7cfe2c2

Please sign in to comment.