troubleshooting meta tags
This commit is contained in:
parent
2311d4c70d
commit
df623bb84a
4 changed files with 9 additions and 7 deletions
|
@ -89,7 +89,7 @@ function (_React$Component) {
|
||||||
}),
|
}),
|
||||||
content: _react.default.createElement(_ClickToCopy.default, {
|
content: _react.default.createElement(_ClickToCopy.default, {
|
||||||
id: 'short-link',
|
id: 'short-link',
|
||||||
value: "".concat(host, "/").concat(shortId, "/").concat(name, ".").concat(fileExt)
|
value: "".concat(host, "/").concat(shortId, "/").concat(name)
|
||||||
})
|
})
|
||||||
})), _react.default.createElement(_Row.default, null, _react.default.createElement(_RowLabeled.default, {
|
})), _react.default.createElement(_Row.default, null, _react.default.createElement(_RowLabeled.default, {
|
||||||
label: _react.default.createElement(_Label.default, {
|
label: _react.default.createElement(_Label.default, {
|
||||||
|
@ -102,9 +102,9 @@ function (_React$Component) {
|
||||||
id: 'embed-text-image',
|
id: 'embed-text-image',
|
||||||
value: "<img src=\"".concat(host, "/").concat(claimId, "/").concat(name, ".").concat(fileExt, "\"/>")
|
value: "<img src=\"".concat(host, "/").concat(claimId, "/").concat(name, ".").concat(fileExt, "\"/>")
|
||||||
}))
|
}))
|
||||||
})), _react.default.createElement(_Row.default, null, _react.default.createElement(_SpaceBetween.default, null, _react.default.createElement(_reactRouterDom.Link, {
|
})), _react.default.createElement(_Row.default, null, _react.default.createElement(_SpaceBetween.default, null, _react.default.createElement("a", {
|
||||||
className: "link--primary",
|
className: "link--primary",
|
||||||
to: "/".concat(shortId, "/").concat(name, ".").concat(fileExt)
|
href: "".concat(host, "/").concat(claimId, "/").concat(name, ".").concat(fileExt)
|
||||||
}, "Direct Link"), _react.default.createElement("a", {
|
}, "Direct Link"), _react.default.createElement("a", {
|
||||||
className: 'link--primary',
|
className: 'link--primary',
|
||||||
href: "".concat(host, "/").concat(claimId, "/").concat(name, ".").concat(fileExt),
|
href: "".concat(host, "/").concat(claimId, "/").concat(name, ".").concat(fileExt),
|
||||||
|
|
|
@ -203,6 +203,7 @@ var createAssetMetaTags = function createAssetMetaTags(_ref3) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log('metaTags:', metaTags);
|
||||||
return metaTags;
|
return metaTags;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,7 @@ class AssetInfo extends React.Component {
|
||||||
content={
|
content={
|
||||||
<ClickToCopy
|
<ClickToCopy
|
||||||
id={'short-link'}
|
id={'short-link'}
|
||||||
value={`${host}/${shortId}/${name}.${fileExt}`}
|
value={`${host}/${shortId}/${name}`}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
@ -81,12 +81,12 @@ class AssetInfo extends React.Component {
|
||||||
|
|
||||||
<Row>
|
<Row>
|
||||||
<SpaceBetween>
|
<SpaceBetween>
|
||||||
<Link
|
<a
|
||||||
className='link--primary'
|
className='link--primary'
|
||||||
to={`/${shortId}/${name}.${fileExt}`}
|
href={`${host}/${claimId}/${name}.${fileExt}`}
|
||||||
>
|
>
|
||||||
Direct Link
|
Direct Link
|
||||||
</Link>
|
</a>
|
||||||
<a
|
<a
|
||||||
className={'link--primary'}
|
className={'link--primary'}
|
||||||
href={`${host}/${claimId}/${name}.${fileExt}`}
|
href={`${host}/${claimId}/${name}.${fileExt}`}
|
||||||
|
|
|
@ -82,6 +82,7 @@ const createAssetMetaTags = ({siteHost, siteTitle, siteTwitter, asset, defaultDe
|
||||||
metaTags.push({property: 'og:type', content: 'article'});
|
metaTags.push({property: 'og:type', content: 'article'});
|
||||||
metaTags.push({property: 'twitter:card', content: 'summary_large_image'});
|
metaTags.push({property: 'twitter:card', content: 'summary_large_image'});
|
||||||
}
|
}
|
||||||
|
console.log('metaTags:', metaTags);
|
||||||
return metaTags;
|
return metaTags;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue