Skip to content

Commit 34667aa

Browse files
committed
update sponsor
1 parent 8ac4016 commit 34667aa

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

docs/.vuepress/theme/Home.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</p>
1313
</div>
1414

15-
<div style="border-top: 1px solid #eaecef; text-align: center">
15+
<!-- <div style="border-top: 1px solid #eaecef; text-align: center">
1616
<h4>赞助商</h4>
1717
<div style="display: flex;justify-content: space-around;width: 60%;margin: 0 auto;font-size: 14px;">
1818
<div style="width: 300px;display: flex;justify-content: space-around;flex-direction:row;">
@@ -24,7 +24,7 @@
2424
</a>
2525
</div>
2626
</div>
27-
</div>
27+
</div> -->
2828

2929
<div v-if="data.features && data.features.length" class="features" :class="{isCN:isCN}">
3030
<div v-for="(feature, index) in data.features" :key="index" class="feature">

docs/.vuepress/theme/Layout.vue

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<Sidebar :items="sidebarItems" @toggle-sidebar="toggleSidebar">
1515
<div slot="top" :class="{'load-success':loadSuccess}">
1616
<div v-if="!isHome" id="codefund" :key="$route.path" />
17-
<div v-if="isCN||isGitee" class="sidebar-heading" style="color:auto;padding-top:8px;margin-bottom:-8px">
17+
<!-- <div v-if="isCN||isGitee" class="sidebar-heading" style="color:auto;padding-top:8px;margin-bottom:-8px">
1818
<span>赞助商</span>
1919
<div>
2020
<ul
@@ -59,7 +59,7 @@
5959
</li>
6060
</ul>
6161
</div>
62-
</div>
62+
</div> -->
6363

6464
</div>
6565
<slot slot="bottom" name="sidebar-bottom" />
@@ -182,23 +182,25 @@ export default {
182182
$route: {
183183
handler(val, oldVal) {
184184
if (this.$isServer) return
185-
if (document.getElementById('carbonads') && !this.isCN) {
185+
if (document.getElementById('carbonads')) {
186186
window._carbonads && window._carbonads.refresh()
187187
}
188188
},
189189
immediate: true
190190
},
191191
$lang(val) {
192-
if (val !== 'zh-CN') {
193-
loadCarbon()
194-
}
192+
// if (val !== 'zh-CN') {
193+
// loadCarbon()
194+
// }
195+
loadCarbon()
195196
}
196197
},
197198
mounted() {
198-
loadGitter()
199-
if (!this.isCN) {
200-
loadCarbon()
201-
}
199+
// loadGitter()
200+
// if (!this.isCN) {
201+
// loadCarbon()
202+
// }
203+
loadCarbon()
202204
203205
window.addEventListener('scroll', this.onScroll)
204206
// configure progress bar
@@ -401,7 +403,7 @@ export default {
401403
line-height: 1;
402404
}
403405
404-
#carbonads :lang(zh-CN) {
406+
/* #carbonads :lang(zh-CN) {
405407
display: none;
406-
}
408+
} */
407409
</style>

0 commit comments

Comments
 (0)