/
index.js
37 lines (36 loc) · 872 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import Theme from 'vitepress/theme'
import { h } from 'vue'
import sponsors from './sponsors.json'
import './sponsors.css'
import './custom.css'
export default {
...Theme,
Layout() {
return h(Theme.Layout, null, {
'sidebar-bottom': () =>
h('div', { class: 'sponsors' }, [
h(
'a',
{
href: 'https://github.com/sponsors/yyx990803',
target: '_blank',
rel: 'noopener'
},
[h('span', 'Sponsors')]
),
...sponsors.map(({ href, src, name }) =>
h(
'a',
{
href,
target: '_blank',
rel: 'noopener',
'aria-label': 'sponsor-img'
},
[h('img', { src, alt: name })]
)
)
])
})
}
}