remark: remove dark theme

This commit is contained in:
2025-11-22 00:21:35 +03:00
parent 1b4c4e4470
commit df321ebc60

View File

@@ -10,10 +10,6 @@
theme: 'light'
};
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
remark_config.theme = "dark";
}
(function(c) {
for(var i = 0; i < c.length; i++){
var d = document, s = d.createElement('script');
@@ -22,11 +18,6 @@
(d.head || d.body).appendChild(s);
}
})(remark_config.components || ['embed']);
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', event => {
const newColorScheme = event.matches ? "dark" : "light";
window.REMARK42.changeTheme(newColorScheme);
});
</script>
{{ end }}
{{ end }}