File tree Expand file tree Collapse file tree 1 file changed +18
-3
lines changed
docs/.vuepress/components Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change 2
2
<NormalPage >
3
3
<template #contentBefore >
4
4
<div class =" theme-hope-content ads-container" >
5
- <div class =" mingdao" v-if =" !enableSidebar " >
5
+ <div class =" mingdao" v-if =" showMingdao " >
6
6
<a href =" https://www.mingdao.com?s=utm_51=utm_source=liteflow&utm_medium=banner&utm_campaign=%E5%93%81%E7%89%8C%E6%8E%A8%E5%B9%BF&utm_content=IT%E8%B5%8B%E8%83%BD%E4%B8%9A%E5%8A%A1"
7
7
target =" _blank" >
8
8
<img src =" /img/ads/mingdao-h.png" alt =" " />
13
13
</div >
14
14
</div >
15
15
</template >
16
+ <template #contentAfter >
17
+ <div class =" bottom-wwads" >
18
+ <div class =" wwads wwads-cn wwads-horizontal" data-id =" 213" style =" width :90% !important " v-if =" showMingdao" >
19
+ </div >
20
+ </div >
21
+ </template >
16
22
</NormalPage >
17
23
</template >
18
24
<script setup lang="ts">
@@ -25,8 +31,12 @@ const pageData = usePageData()
25
31
26
32
// get is enable sidebar from frontmatter
27
33
const frontmatter = usePageFrontmatter ();
28
- const enableSidebar = computed (() => {
29
- return frontmatter .value .sidebar === undefined ? true : frontmatter .value .sidebar ;
34
+ const showMingdao = computed (() => {
35
+ if (pageData .value .path .startsWith (" /tool/" )) {
36
+ return true ;
37
+ }
38
+ const sidebar = frontmatter .value .sidebar ;
39
+ return sidebar === false ;
30
40
})
31
41
32
42
const spStr = computed (() => {
@@ -61,6 +71,11 @@ const spStr = computed(() => {
61
71
}
62
72
}
63
73
74
+ .bottom-wwads {
75
+ display : flex ;
76
+ justify-content : center ;
77
+ margin-top : 20px ;
78
+ }
64
79
.ads-container {
65
80
padding-top : 0 !important ;
66
81
padding-bottom : 0 !important ;
You can’t perform that action at this time.
0 commit comments