This commit is contained in:
parent
a8c42da44a
commit
3256f3eba1
@ -50,14 +50,14 @@ export default ((opts: Options) => {
|
|||||||
return [
|
return [
|
||||||
() => {
|
() => {
|
||||||
return async (tree: Root, file) => {
|
return async (tree: Root, file) => {
|
||||||
const display = file.data.frontmatter?.enableComments ?? true
|
// const display = file.data.frontmatter?.enableComments ?? true
|
||||||
if (display) {
|
// if (display) {
|
||||||
<>
|
<>
|
||||||
<div id="remark42" style="margin-top: 2rem"></div>
|
<div id="remark42" style="margin-top: 2rem"></div>
|
||||||
<script dangerouslySetInnerHTML={{ __html: remarkConfig }}></script>
|
<script dangerouslySetInnerHTML={{ __html: remarkConfig }}></script>
|
||||||
<script dangerouslySetInnerHTML={{ __html: embedScript }}></script>
|
<script dangerouslySetInnerHTML={{ __html: embedScript }}></script>
|
||||||
</>
|
</>
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user