57 lines
1.3 KiB
JavaScript
57 lines
1.3 KiB
JavaScript
import global from './global'
|
|
|
|
export default (meta) => {
|
|
return [
|
|
{
|
|
hid: 'description',
|
|
name: 'description',
|
|
content: (meta && meta.description) || global.siteDesc
|
|
},
|
|
{
|
|
hid: 'og:type',
|
|
property: 'og:type',
|
|
content: (meta && meta.type) || global.siteType
|
|
},
|
|
{
|
|
hid: 'og:url',
|
|
property: 'og:url',
|
|
content: (meta && meta.url) || global.siteUrl
|
|
},
|
|
{
|
|
hid: 'og:title',
|
|
property: 'og:title',
|
|
content: (meta && meta.title) || global.siteTitle
|
|
},
|
|
{
|
|
hid: 'og:description',
|
|
property: 'og:description',
|
|
content: (meta && meta.description) || global.siteDesc
|
|
},
|
|
{
|
|
hid: 'og:image',
|
|
property: 'og:image',
|
|
content: (meta && meta.mainImage) || global.mainImage
|
|
},
|
|
{
|
|
hid: 'twitter:url',
|
|
name: 'twitter:url',
|
|
content: (meta && meta.url) || global.siteUrl
|
|
},
|
|
{
|
|
hid: 'twitter:title',
|
|
name: 'twitter:title',
|
|
content: (meta && meta.title) || global.siteTitle
|
|
},
|
|
{
|
|
hid: 'twitter:description',
|
|
name: 'twitter:description',
|
|
content: (meta && meta.description) || global.siteDesc
|
|
},
|
|
{
|
|
hid: 'twitter:image',
|
|
name: 'twitter:image',
|
|
content: (meta && meta.mainImage) || global.mainImage
|
|
}
|
|
]
|
|
}
|