diff --git a/themes/landing/components/Footer.js b/themes/landing/components/Footer.js
index 4e2d7026..25935f6d 100644
--- a/themes/landing/components/Footer.js
+++ b/themes/landing/components/Footer.js
@@ -114,7 +114,7 @@ export default function Footer() {
{/* 开启邮件收集 */}
- {CONFIG.NEWSLETTER && <>
+ {JSON.parse(CONFIG.NEWSLETTER) && <>
{/* 5th block */}
Subscribe
diff --git a/themes/landing/components/Newsletter.js b/themes/landing/components/Newsletter.js
index 5ddcc02d..18ad893a 100644
--- a/themes/landing/components/Newsletter.js
+++ b/themes/landing/components/Newsletter.js
@@ -26,7 +26,7 @@ export default function Newsletter() {
}
}, [subscribeToNewsletter])
- if (!CONFIG.NEWSLETTER) {
+ if (!JSON.parse(CONFIG.NEWSLETTER)) {
return <>>
}
diff --git a/themes/landing/config.js b/themes/landing/config.js
index 02a74e6a..50f5c444 100644
--- a/themes/landing/config.js
+++ b/themes/landing/config.js
@@ -50,6 +50,6 @@ const CONFIG = {
TESTIMONIALS_SOCIAL_URL: 'https://blog.gaoran.xyz/',
TESTIMONIALS_WORD: '“ 感谢大佬的方法。之前尝试过Super、Potion等国外的第三方平台,实现效果一般,个性化成都远不如这个方法,已经用起来了! “',
- NEWSLETTER: false // 是否开启邮件订阅 请先配置mailchimp功能 https://docs.tangly1024.com/article/notion-next-mailchimp
+ NEWSLETTER: process.env.NEXT_PUBLIC_THEME_LANDING_NEWSLETTER || false // 是否开启邮件订阅 请先配置mailchimp功能 https://docs.tangly1024.com/article/notion-next-mailchimp
}
export default CONFIG