diff options
author | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-12-15 03:56:47 +0300 |
---|---|---|
committer | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-12-15 03:56:47 +0300 |
commit | a9168e6f04f766f7d88bc1b24aaa81336098b2fc (patch) | |
tree | a4db599140020cfb14803aa4d28b17d52e637a72 /layouts/partials/comments.html | |
parent | 3b040f1503d90a309f41063d8f760a3e312ab351 (diff) |
Auto-commit 2024-12-15
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 |