gitter 组件

This commit is contained in:
tangly1024
2022-01-04 17:44:48 +08:00
parent cd2376f2a0
commit 1eba3b7c66
2 changed files with 13 additions and 0 deletions

View File

@@ -69,6 +69,7 @@ const BLOG = {
utterancesConfig: {
repo: 'tangly1024/NotionNext'
},
gitter: '', // gitter聊天室
DaoVoiceId: '', // DaoVoice http://dashboard.daovoice.io/get-started
TidioId: '' // https://www.tidio.com/
},

View File

@@ -37,6 +37,18 @@ const ThirdPartyScript = () => {
/>
</>)}
{/* */}
{BLOG.gitter && (<>
<script async dangerouslySetInnerHTML={{
__html: `
((window.gitter = {}).chat = {}).options = {
room: 'tangly1024/community'
};
`
}}/>
<script src="https://sidecar.gitter.im/dist/sidecar.v1.js" async defer></script>
</>)}
{/* 代码统计 */}
{BLOG.isProd && (<>