MitseaBlog/themes/hugo-theme-stack/layouts/partials/comments/provider/disqus.html
2022-10-11 17:34:41 +08:00

22 lines
516 B
HTML

<div class="disqus-container">
{{ template "_internal/disqus.html" . }}
</div>
<style>
.disqus-container {
background-color: var(--card-background);
border-radius: var(--card-border-radius);
box-shadow: var(--shadow-l1);
padding: var(--card-padding);
}
</style>
<script>
window.addEventListener('onColorSchemeChange', (e) => {
if (typeof DISQUS == 'object') {
DISQUS.reset({
reload: true
});
}
})
</script>