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
|
const type = 'website'
const url = 'https://volatile.fuwn.me'
const title = 'Volatile'
const description = ''
const mainImage = '/static/favicon.png'
export default (meta) => {
return [
{
hid: 'description',
name: 'description',
content: (meta && meta.description) || description
},
{
hid: 'og:type',
property: 'og:type',
content: (meta && meta.type) || type
},
{
hid: 'og:url',
property: 'og:url',
content: (meta && meta.url) || url
},
/* {
hid: 'og:title',
property: 'og:title',
content: (meta && meta.title) || title
}, */
{
hid: 'og:description',
property: 'og:description',
content: (meta && meta.description) || description
},
{
hid: 'og:image',
property: 'og:image',
content: (meta && meta.mainImage) || mainImage
},
{
hid: 'twitter:url',
name: 'twitter:url',
content: (meta && meta.url) || url
},
{
hid: 'twitter:title',
name: 'twitter:title',
content: (meta && meta.title) || title
},
{
hid: 'twitter:description',
name: 'twitter:description',
content: (meta && meta.description) || description
},
{
hid: 'twitter:image',
name: 'twitter:image',
content: (meta && meta.mainImage) || mainImage
}
]
}
|