게시물 광고 배치 조정
This commit is contained in:
@@ -39,6 +39,7 @@ const recommendedSites = computed(() => {
|
||||
return list.filter((x) => x?.isVisible !== false)
|
||||
})
|
||||
const isPostDetailRoute = computed(() => route.path.startsWith('/post/'))
|
||||
const sidebarAdCode = computed(() => isPostDetailRoute.value ? '' : siteSettings.value?.adSidebarCode)
|
||||
const postTocItems = computed(() => Array.isArray(postToc.value) ? postToc.value : [])
|
||||
const followLinks = computed(() => getVisibleSocialLinks(siteSettings.value?.socialLinks || []))
|
||||
|
||||
@@ -489,7 +490,7 @@ watch([postTocItems, () => route.fullPath], async () => {
|
||||
|
||||
<SiteAdSlot
|
||||
class="right-sidebar__ad-slot site-sidebar-section py-5 pl-5 pr-0 max-lg:px-0"
|
||||
:code="siteSettings?.adSidebarCode"
|
||||
:code="sidebarAdCode"
|
||||
location="sidebar"
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user