forked from jaywcjlove/handbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.mjs
60 lines (59 loc) · 1.5 KB
/
footer.mjs
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
export const footer = (editPath) => {
return {
type: 'element',
tagName: 'div',
properties: {
className: 'footer',
},
children: [
{
type: 'element',
tagName: 'a',
properties: {
'data-edit': true,
target: '__blank',
title: `https://github.com/jaywcjlove/handbook/edit/master/${editPath}`,
href: `https://github.com/jaywcjlove/handbook/edit/master/${editPath}`,
},
children: [ { type: 'text', value: '编辑当前页面' } ]
},
{
type: 'element',
tagName: 'a',
properties: {
target: '__blank',
href: 'https://jaywcjlove.gitee.io/handbook/',
},
children: [ { type: 'text', value: '国内镜像站点 🇨🇳' } ]
},
{
type: 'element',
tagName: 'a',
properties: {
target: '__blank',
href: 'https://github.com/jaywcjlove/handbook',
},
children: [ { type: 'text', value: 'Github' } ]
},
{
type: 'element',
tagName: 'a',
properties: {
target: '__blank',
href: 'https://gitee.com/jaywcjlove/handbook',
},
children: [ { type: 'text', value: 'Gitee' } ]
},
{
type: 'element',
tagName: 'div',
properties: {
className: 'copyright',
},
children: [
{ type: 'text', value: 'Copyright © 2021. All rights reserved.' }
]
}
]
}
}