mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-20 03:14:06 -06:00
Update Body.tsx
This commit is contained in:
parent
e5cbbe16c7
commit
0935a06b2d
@ -4,16 +4,7 @@ import clipboardStyle from "./styles/clipboard.scss"
|
||||
import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "./types"
|
||||
|
||||
const Body: QuartzComponent = ({ children }: QuartzComponentProps) => {
|
||||
return (
|
||||
<div id="quartz-body">
|
||||
{children}
|
||||
<div id="tcomment"></div>
|
||||
<script src="https://cdn.jsdelivr.net/npm/twikoo@1.6.41/dist/twikoo.min.js"></script>
|
||||
<script>
|
||||
twikoo.init({envId: 'https://enneatwikoo.netlify.app/.netlify/functions/twikoo', el: '#tcomment', })
|
||||
</script>
|
||||
</div>
|
||||
)
|
||||
return <div id="quartz-body">{children}</div>
|
||||
}
|
||||
|
||||
Body.afterDOMLoaded = clipboardScript
|
||||
|
||||
Loading…
Reference in New Issue
Block a user