added default thumb to channel meta tags
This commit is contained in:
parent
264f7dd986
commit
1651c24529
2 changed files with 19 additions and 12 deletions
|
@ -43,10 +43,8 @@ var createBasicMetaTags = function createBasicMetaTags(_ref) {
|
|||
}, {
|
||||
property: 'twitter:title',
|
||||
content: siteTitle
|
||||
}, {
|
||||
property: 'og:url',
|
||||
content: siteHost
|
||||
}, {
|
||||
}, // {property: 'og:url', content: siteHost},
|
||||
{
|
||||
property: 'og:site_name',
|
||||
content: siteTitle
|
||||
}, {
|
||||
|
@ -77,7 +75,8 @@ var createChannelMetaTags = function createChannelMetaTags(_ref2) {
|
|||
var siteHost = _ref2.siteHost,
|
||||
siteTitle = _ref2.siteTitle,
|
||||
siteTwitter = _ref2.siteTwitter,
|
||||
channel = _ref2.channel;
|
||||
channel = _ref2.channel,
|
||||
defaultThumbnail = _ref2.defaultThumbnail;
|
||||
var name = channel.name,
|
||||
longId = channel.longId;
|
||||
return [{
|
||||
|
@ -86,10 +85,8 @@ var createChannelMetaTags = function createChannelMetaTags(_ref2) {
|
|||
}, {
|
||||
property: 'twitter:title',
|
||||
content: "".concat(name, " on ").concat(siteTitle)
|
||||
}, {
|
||||
property: 'og:url',
|
||||
content: "".concat(siteHost, "/").concat(name, ":").concat(longId)
|
||||
}, {
|
||||
}, // {property: 'og:url', content: `${siteHost}/${name}:${longId}`},
|
||||
{
|
||||
property: 'og:site_name',
|
||||
content: siteTitle
|
||||
}, {
|
||||
|
@ -101,6 +98,12 @@ var createChannelMetaTags = function createChannelMetaTags(_ref2) {
|
|||
}, {
|
||||
property: 'twitter:card',
|
||||
content: 'summary'
|
||||
}, {
|
||||
property: 'og:image',
|
||||
content: defaultThumbnail
|
||||
}, {
|
||||
property: 'twitter:image',
|
||||
content: defaultThumbnail
|
||||
}];
|
||||
};
|
||||
|
||||
|
@ -128,7 +131,7 @@ var createAssetMetaTags = function createAssetMetaTags(_ref3) {
|
|||
content: ogTitle
|
||||
}, {
|
||||
property: 'og:url',
|
||||
content: showUrl
|
||||
content: source
|
||||
}, {
|
||||
property: 'og:site_name',
|
||||
content: siteTitle
|
||||
|
@ -259,7 +262,8 @@ var createMetaTags = function createMetaTags(_ref4) {
|
|||
siteHost: siteHost,
|
||||
siteTitle: siteTitle,
|
||||
siteTwitter: siteTwitter,
|
||||
channel: channel
|
||||
channel: channel,
|
||||
defaultThumbnail: defaultThumbnail
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ const createBasicMetaTags = ({siteHost, siteDescription, siteTitle, siteTwitter,
|
|||
];
|
||||
};
|
||||
|
||||
const createChannelMetaTags = ({siteHost, siteTitle, siteTwitter, channel}) => {
|
||||
const createChannelMetaTags = ({siteHost, siteTitle, siteTwitter, channel, defaultThumbnail}) => {
|
||||
const { name, longId } = channel;
|
||||
return [
|
||||
{property: 'og:title', content: `${name} on ${siteTitle}`},
|
||||
|
@ -44,6 +44,8 @@ const createChannelMetaTags = ({siteHost, siteTitle, siteTwitter, channel}) => {
|
|||
{property: 'og:description', content: `${name}, a channel on ${siteTitle}`},
|
||||
{property: 'twitter:site', content: siteTwitter},
|
||||
{property: 'twitter:card', content: 'summary'},
|
||||
{property: 'og:image', content: defaultThumbnail},
|
||||
{property: 'twitter:image', content: defaultThumbnail},
|
||||
];
|
||||
};
|
||||
|
||||
|
@ -111,6 +113,7 @@ export const createMetaTags = ({ siteDescription, siteHost, siteTitle, siteTwitt
|
|||
siteTitle,
|
||||
siteTwitter,
|
||||
channel,
|
||||
defaultThumbnail,
|
||||
});
|
||||
}
|
||||
return createBasicMetaTags({
|
||||
|
|
Loading…
Reference in a new issue