Add theme-color and simplify embed description
This commit is contained in:
@@ -34,7 +34,7 @@ function ogTitle(video: VideoEntry): string {
|
|||||||
function ogDescription(video: VideoEntry): string {
|
function ogDescription(video: VideoEntry): string {
|
||||||
const parts: string[] = [formatRunTime(video.runTime)];
|
const parts: string[] = [formatRunTime(video.runTime)];
|
||||||
if (video.tier != null) parts.push(`Tier ${video.tier}`);
|
if (video.tier != null) parts.push(`Tier ${video.tier}`);
|
||||||
return `${video.playerName} on ${mapDisplayName(video.mapName)} · ${parts.join(" · ")}`;
|
return parts.join(" · ");
|
||||||
}
|
}
|
||||||
|
|
||||||
function buildOgsHtml(video: VideoEntry): string {
|
function buildOgsHtml(video: VideoEntry): string {
|
||||||
@@ -54,7 +54,8 @@ function buildOgsHtml(video: VideoEntry): string {
|
|||||||
` <meta property="og:description" content="${escapeHtml(description)}" />\n` +
|
` <meta property="og:description" content="${escapeHtml(description)}" />\n` +
|
||||||
` <meta property="og:url" content="${runUrl}" />\n` +
|
` <meta property="og:url" content="${runUrl}" />\n` +
|
||||||
` <meta property="og:type" content="video.other" />\n` +
|
` <meta property="og:type" content="video.other" />\n` +
|
||||||
` <meta property="og:site_name" content="surf.nathan.rip" />`;
|
` <meta property="og:site_name" content="surf.nathan.rip" />\n` +
|
||||||
|
` <meta name="theme-color" content="#1896D3" />`;
|
||||||
|
|
||||||
if (thumbnailUrl) {
|
if (thumbnailUrl) {
|
||||||
tags +=
|
tags +=
|
||||||
|
|||||||
Reference in New Issue
Block a user