diff options
Diffstat (limited to 'layouts/partials/comments.html')
-rw-r--r-- | layouts/partials/comments.html | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html index 77b4410..f23437f 100644 --- a/layouts/partials/comments.html +++ b/layouts/partials/comments.html @@ -1,8 +1,6 @@ {{- with .Site.Params.comments -}} -<article class="comments"> - <header>Комментарии</header> - <div id="remark42"></div> -</article> +<h1 class="post-title fw-semibold">Комментарии</h1> +<div id="remark42"></div> <script> var remark_config = { host: '{{ .host }}', @@ -10,7 +8,7 @@ components: ['embed'], url: '{{ $.Permalink }}', max_shown_comments: {{ default 15 .max_shown_comments }}, - theme: (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches)?'dark':'light', + theme: 'light', page_title: '{{ $.Title }}', locale: '{{ default "en" .locale }}', show_email_subscription: {{ default true .show_email_subscription }} @@ -25,8 +23,5 @@ } }(remark_config.components || ['embed'], document); - window.addEventListener('onColorSchemeChange', (e) => { - window.REMARK42.changeTheme(e.detail); - }) </script> {{- end -}}
\ No newline at end of file |