new og image
This commit is contained in:
parent
45b7720118
commit
5152e78f09
5 changed files with 6 additions and 6 deletions
|
@ -42,9 +42,9 @@ function buildOgMetadata(overrideOptions = {}) {
|
||||||
'<meta property="og:site_name" content="lbry.tv | Content Freedom"/>\n' +
|
'<meta property="og:site_name" content="lbry.tv | Content Freedom"/>\n' +
|
||||||
`<meta property="og:description" content="${description ||
|
`<meta property="og:description" content="${description ||
|
||||||
'Meet LBRY, an open, free, and community-controlled content wonderland.'}" />\n` +
|
'Meet LBRY, an open, free, and community-controlled content wonderland.'}" />\n` +
|
||||||
`<meta property="og:image" content="${URL}/v1-og.png" />\n` +
|
`<meta property="og:image" content="${URL}/v2-og.png" />\n` +
|
||||||
'<meta name="twitter:card" content="summary_large_image"/>\n' +
|
'<meta name="twitter:card" content="summary_large_image"/>\n' +
|
||||||
`<meta name="twitter:image" content="${URL}/v1-og.png"/>\n` +
|
`<meta name="twitter:image" content="${URL}/v2-og.png"/>\n` +
|
||||||
'<meta property="fb:app_id" content="1673146449633983" />';
|
'<meta property="fb:app_id" content="1673146449633983" />';
|
||||||
|
|
||||||
return head;
|
return head;
|
||||||
|
@ -69,7 +69,7 @@ function buildClaimOgMetadata(uri, claim, overrideOptions = {}) {
|
||||||
if (Number(claim.fee) <= 0 && claim.source_media_type && claim.source_media_type.startsWith('image/')) {
|
if (Number(claim.fee) <= 0 && claim.source_media_type && claim.source_media_type.startsWith('image/')) {
|
||||||
imageThumbnail = generateStreamUrl(claim.name, claim.claim_id, undefined, undefined, true);
|
imageThumbnail = generateStreamUrl(claim.name, claim.claim_id, undefined, undefined, true);
|
||||||
}
|
}
|
||||||
const claimThumbnail = escapeHtmlProperty(claim.thumbnail_url) || imageThumbnail || `${URL}/v1-og.png`;
|
const claimThumbnail = escapeHtmlProperty(claim.thumbnail_url) || imageThumbnail || `${URL}/v2-og.png`;
|
||||||
|
|
||||||
// Allow for ovverriding default claim based og metadata
|
// Allow for ovverriding default claim based og metadata
|
||||||
const title = overrideOptions.title || claimTitle;
|
const title = overrideOptions.title || claimTitle;
|
||||||
|
|
|
@ -24,8 +24,8 @@ let plugins = [
|
||||||
to: `${DIST_ROOT}/public/favicon.png`,
|
to: `${DIST_ROOT}/public/favicon.png`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
from: `${STATIC_ROOT}/img/v1-og.png`,
|
from: `${STATIC_ROOT}/img/v2-og.png`,
|
||||||
to: `${DIST_ROOT}/public/v1-og.png`,
|
to: `${DIST_ROOT}/public/v2-og.png`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
from: `${STATIC_ROOT}/font/`,
|
from: `${STATIC_ROOT}/font/`,
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 180 KiB |
BIN
static/img/v2-og.png
Normal file
BIN
static/img/v2-og.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 481 KiB |
|
@ -69,7 +69,7 @@
|
||||||
<meta property="og:title" content="lbry.tv" />
|
<meta property="og:title" content="lbry.tv" />
|
||||||
<meta property="og:site_name" content="lbry.tv" />
|
<meta property="og:site_name" content="lbry.tv" />
|
||||||
<meta property="og:description" content="Meet LBRY, a content platform owned by everyone (and no one)." />
|
<meta property="og:description" content="Meet LBRY, a content platform owned by everyone (and no one)." />
|
||||||
<meta property="og:image" content="https://lbry.tv/v1-og.png" />
|
<meta property="og:image" content="https://lbry.tv/v2-og.png" />
|
||||||
<meta property="fb:app_id" content="1673146449633983" />
|
<meta property="fb:app_id" content="1673146449633983" />
|
||||||
<!-- VARIABLE_HEAD_END -->
|
<!-- VARIABLE_HEAD_END -->
|
||||||
</head>
|
</head>
|
||||||
|
|
Loading…
Reference in a new issue