集成万维广告
This commit is contained in:
parent
8aa4b11384
commit
57e34453a7
@ -3,6 +3,9 @@ import { defineConfig } from 'vitepress'
|
||||
export default defineConfig({
|
||||
lastUpdated: true,
|
||||
lang: 'zh-CN',
|
||||
head: [
|
||||
['script', { src: 'https://cdn.wwads.cn/js/makemoney.js', async: 'true' }],
|
||||
],
|
||||
locales: {
|
||||
root: {
|
||||
lang: 'zh-CN',
|
||||
|
3
docs/.vitepress/theme/components/SmallAd.vue
Normal file
3
docs/.vitepress/theme/components/SmallAd.vue
Normal file
@ -0,0 +1,3 @@
|
||||
<template>
|
||||
<div class="wwads-cn wwads-vertical" data-id="296" style="max-width:350px; margin-bottom: 20px;"></div>
|
||||
</template>
|
12
docs/.vitepress/theme/index.ts
Normal file
12
docs/.vitepress/theme/index.ts
Normal file
@ -0,0 +1,12 @@
|
||||
import { h } from 'vue'
|
||||
import DefaultTheme from 'vitepress/theme'
|
||||
import SmallAd from './components/SmallAd.vue'
|
||||
|
||||
export default {
|
||||
...DefaultTheme,
|
||||
Layout() {
|
||||
return h(DefaultTheme.Layout, null, {
|
||||
'aside-top': () => h(SmallAd)
|
||||
})
|
||||
}
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
<template>
|
||||
<span>⚡</span>
|
||||
</template>
|
Loading…
x
Reference in New Issue
Block a user