This commit is contained in:
parent
a8c42da44a
commit
3256f3eba1
@ -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>
|
||||
</>
|
||||
}
|
||||
// }
|
||||
}
|
||||
}
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user