Skip to content

Commit

Permalink
Giscus light mode script for Giscus (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrominatel committed Mar 13, 2024
1 parent 40f4325 commit cc3f96d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,12 @@ <h1 class="mt-0 text-4xl font-extrabold text-neutral-900 dark:text-neutral">
var colorScheme = localStorage.getItem("appearance");
if (colorScheme === "light") {
document.write('{{ partial "giscus_light" . }}');
} else if (colorScheme === "dark") {
} else {
document.write('{{ partial "giscus_dark" . }}');
}
</script>


{{ partial "related.html" . }}
</div>

Expand Down

0 comments on commit cc3f96d

Please sign in to comment.