Next主题 SEO

This commit is contained in:
tangly1024.com
2024-01-31 18:45:11 +08:00
parent eced20bfe7
commit 765ba1cb25
21 changed files with 88 additions and 89 deletions

View File

@@ -7,13 +7,13 @@ import { siteConfig } from '@/lib/config'
* @returns {JSX.Element | null} - 返回渲染的 JSX 元素或 null
*/
export default function WWAds({ orientation = 'vertical', sticky = false, className }) {
const adWWADSId = siteConfig('AD_WWADS_ID')
const AD_WWADS_ID = siteConfig('AD_WWADS_ID')
if (!adWWADSId) {
if (!AD_WWADS_ID) {
return null
}
return <div data-id={adWWADSId} className={`wwads-cn
return <div data-id={AD_WWADS_ID} className={`wwads-cn
${orientation === 'vertical' ? 'wwads-vertical' : 'wwads-horizontal'}
${sticky ? 'wwads-sticky' : ''} z-10 ${className || ''}`} />
}