mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-07 23:16:52 +00:00
Next主题 SEO
This commit is contained in:
@@ -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 || ''}`} />
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user