feat(NotByAI): add commerce theme configuration options to maintain consistency with other themes

This commit is contained in:
anime
2025-07-06 03:36:36 +08:00
parent 8fd2f70d7b
commit 13d02176a4
2 changed files with 6 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ export default function ArticleCopyright() {
const { locale } = useGlobal()
if (!CONFIG.ARTICLE_COPYRIGHT) {
if (!siteConfig('COMMERCE_ARTICLE_COPYRIGHT', null, CONFIG)) {
return <></>
}
@@ -40,7 +40,7 @@ export default function ArticleCopyright() {
<strong className='mr-2'>{locale.COMMON.COPYRIGHT}:</strong>
{locale.COMMON.COPYRIGHT_NOTICE}
</li>
{siteConfig('ARTICLE_NOT_BY_AI', false, CONFIG) && (
{siteConfig('COMMERCE_ARTICLE_NOT_BY_AI', false, CONFIG) && (
<li>
<NotByAI />
</li>

View File

@@ -15,6 +15,9 @@ const CONFIG = {
COMMERCE_HOME_POSTS_COUNT: 9, // 首页展示商品数
COMMERCE_CONTACT_WHATSAPP_SHOW: true, // 是否展示whatsapp联系按钮 请配置 CONTACT_WHATSAPP
COMMERCE_CONTACT_TELEGRAM_SHOW: true // 联系栏展示telegram按钮 请配置 CONTACT_TELEGRAM
COMMERCE_CONTACT_TELEGRAM_SHOW: true, // 联系栏展示telegram按钮 请配置 CONTACT_TELEGRAM
COMMERCE_ARTICLE_COPYRIGHT: true, // 文章版权声明
COMMERCE_ARTICLE_NOT_BY_AI: false // 显示非AI写作
}
export default CONFIG