twikoo 评论插件

This commit is contained in:
tangly1024
2022-12-20 20:57:54 +08:00
parent f039049014
commit c44e1d4c71
4 changed files with 51 additions and 4 deletions

View File

@@ -19,6 +19,13 @@ const CusdisComponent = dynamic(
{ ssr: false }
)
const TwikooCompenent = dynamic(
() => {
return import('@/components/Twikoo')
},
{ ssr: false }
)
const GitalkComponent = dynamic(
() => {
return import('@/components/Gitalk')
@@ -66,6 +73,10 @@ const Comment = ({ frontMatter }) => {
<div id='comment' className='comment mt-5 text-gray-800 dark:text-gray-300'>
<Tabs>
{ BLOG.COMMENT_TWIKOO_ENV_ID && (<div key='Twikoo'>
<TwikooCompenent/>
</div>)}
{ BLOG.COMMENT_WALINE_SERVER_URL && (<div key='Waline'>
<WalineComponent/>
</div>) }