feat: wip add blog detail page
This commit is contained in:
@@ -1,56 +1,56 @@
|
||||
import global from './global';
|
||||
import global from './global'
|
||||
|
||||
export default (meta) => {
|
||||
return [
|
||||
{
|
||||
hid: 'description',
|
||||
name: 'description',
|
||||
content: (meta && meta.description) || global.siteDesc,
|
||||
content: (meta && meta.description) || global.siteDesc
|
||||
},
|
||||
{
|
||||
hid: 'og:type',
|
||||
property: 'og:type',
|
||||
content: (meta && meta.type) || global.siteType,
|
||||
content: (meta && meta.type) || global.siteType
|
||||
},
|
||||
{
|
||||
hid: 'og:url',
|
||||
property: 'og:url',
|
||||
content: (meta && meta.url) || global.siteUrl,
|
||||
content: (meta && meta.url) || global.siteUrl
|
||||
},
|
||||
{
|
||||
hid: 'og:title',
|
||||
property: 'og:title',
|
||||
content: (meta && meta.title) || global.siteTitle,
|
||||
content: (meta && meta.title) || global.siteTitle
|
||||
},
|
||||
{
|
||||
hid: 'og:description',
|
||||
property: 'og:description',
|
||||
content: (meta && meta.description) || global.siteDesc,
|
||||
content: (meta && meta.description) || global.siteDesc
|
||||
},
|
||||
{
|
||||
hid: 'og:image',
|
||||
property: 'og:image',
|
||||
content: (meta && meta.mainImage) || global.mainImage,
|
||||
content: (meta && meta.mainImage) || global.mainImage
|
||||
},
|
||||
{
|
||||
hid: 'twitter:url',
|
||||
name: 'twitter:url',
|
||||
content: (meta && meta.url) || global.siteUrl,
|
||||
content: (meta && meta.url) || global.siteUrl
|
||||
},
|
||||
{
|
||||
hid: 'twitter:title',
|
||||
name: 'twitter:title',
|
||||
content: (meta && meta.title) || global.siteTitle,
|
||||
content: (meta && meta.title) || global.siteTitle
|
||||
},
|
||||
{
|
||||
hid: 'twitter:description',
|
||||
name: 'twitter:description',
|
||||
content: (meta && meta.description) || global.siteDesc,
|
||||
content: (meta && meta.description) || global.siteDesc
|
||||
},
|
||||
{
|
||||
hid: 'twitter:image',
|
||||
name: 'twitter:image',
|
||||
content: (meta && meta.mainImage) || global.mainImage,
|
||||
},
|
||||
];
|
||||
};
|
||||
content: (meta && meta.mainImage) || global.mainImage
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@@ -4,15 +4,15 @@
|
||||
access any variable via object syntax global.yourVarName
|
||||
*/
|
||||
export default {
|
||||
siteUrl: 'https://example.com',
|
||||
siteName: 'Starter Blog',
|
||||
author: 'Joe Blogs',
|
||||
twitterHandle: '@joeblogs',
|
||||
siteUrl: 'https://ehandytech.com',
|
||||
siteName: 'ehandytech',
|
||||
author: 'Huwng',
|
||||
twitterHandle: '@kmacoders',
|
||||
twitterURL: 'https://twitter.com/garethredfern',
|
||||
githubURL: 'https://github.com/garethredfern',
|
||||
siteTitle: 'Add Your Main Site Title Here',
|
||||
siteDesc:
|
||||
'A description for your site here, this will show on the home page.',
|
||||
mainImage: '',
|
||||
siteType: 'website',
|
||||
};
|
||||
siteType: 'website'
|
||||
}
|
||||
|
Reference in New Issue
Block a user