Skip to content

Commit 7ebba89

Browse files
committed
refactor: use different slots
1 parent 6653008 commit 7ebba89

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/client/theme-default/Layout.vue

+4-2
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,19 @@
3434
<main v-else>
3535
<Page>
3636
<template #top>
37-
<slot name="page-top">
37+
<slot name="page-top-ads">
3838
<CarbonAds
3939
v-if="$site.themeConfig.carbonAds"
4040
:key="'carbon' + $page.path"
4141
:code="$site.themeConfig.carbonAds.carbon"
4242
:placement="$site.themeConfig.carbonAds.placement"
4343
/>
4444
</slot>
45+
<slot name="page-top" />
4546
</template>
4647
<template #bottom>
47-
<slot name="page-bottom">
48+
<slot name="page-bottom" />
49+
<slot name="page-bottom-ads">
4850
<BuySellAds
4951
v-if="$site.themeConfig.carbonAds"
5052
:key="'custom' + $page.path"

0 commit comments

Comments
 (0)