添加大量可配置项
This commit is contained in:
tangly1024
2022-01-04 11:15:23 +08:00
parent 5a34ff2f05
commit ef3a5dffe2
21 changed files with 154 additions and 122 deletions

View File

@@ -7,7 +7,7 @@ import BLOG from '@/blog.config'
*/
const ThirdPartyScript = () => {
return (<>
{BLOG.DaoVoiceId && (<>
{BLOG.comment?.DaoVoiceId && (<>
{/* DaoVoice 反馈 */}
<script async dangerouslySetInnerHTML={{
__html: `
@@ -18,7 +18,7 @@ const ThirdPartyScript = () => {
<script async dangerouslySetInnerHTML={{
__html: `
daovoice('init', {
app_id: "${BLOG.DaoVoiceId}"
app_id: "${BLOG.comment.DaoVoiceId}"
});
daovoice('update');
`
@@ -30,10 +30,10 @@ const ThirdPartyScript = () => {
{BLOG.googleAdsenseId && (<script data-ad-client={BLOG.googleAdsenseId} async
src='https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'/>)}
{BLOG.TidioId && (<>
{BLOG.comment?.TidioId && (<>
{/* Tidio在线反馈 */}
<script async
src={`//code.tidio.co/${BLOG.TidioId}.js`}
src={`//code.tidio.co/${BLOG.comment.TidioId}.js`}
/>
</>)}