update _Remark.tsx
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Struchkov Mark 2024-09-06 17:44:40 +03:00
parent a8c42da44a
commit 3256f3eba1
No known key found for this signature in database
GPG Key ID: A3F0AC3F0FA52F3C

View File

@ -50,14 +50,14 @@ export default ((opts: Options) => {
return [
() => {
return async (tree: Root, file) => {
const display = file.data.frontmatter?.enableComments ?? true
if (display) {
// const display = file.data.frontmatter?.enableComments ?? true
// if (display) {
<>
<div id="remark42" style="margin-top: 2rem"></div>
<script dangerouslySetInnerHTML={{ __html: remarkConfig }}></script>
<script dangerouslySetInnerHTML={{ __html: embedScript }}></script>
</>
}
// }
}
}
]