Add exclusive photos from recordings to the gallery and improve site metadata
Integrate AdSense ads into the photo gallery, introduce SSR meta tags for the gallery page, and improve layout stability by reserving space for ads and dynamic content. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 23852c00-4779-460a-9e0c-d09fee4b6c92 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 81f3d8bc-2328-4374-a06e-57257dbb713b Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/f209e72a-0939-48fa-84fc-57854de71967/23852c00-4779-460a-9e0c-d09fee4b6c92/OPD8Ro3 Replit-Helium-Checkpoint-Created: true
This commit is contained in:
@@ -113,6 +113,38 @@ export async function setupVite(server: Server, app: Express) {
|
||||
}
|
||||
}
|
||||
|
||||
if (url.match(/^\/gallery(\/|$|\?)/)) {
|
||||
template = stripExistingMeta(template);
|
||||
const galTitle = "Fotogalerie \u2013 Exklusive Backstage- & Konzertfotos | FOLX TV";
|
||||
const galDesc = "Einzigartige Fotos direkt von unseren Aufzeichnungen und Sendungen: Backstage-Momente, Konzertbilder und exklusive Aufnahmen der Volksmusik- und Schlager-Stars bei FOLX TV.";
|
||||
const galUrl = `${canonicalBase}/gallery`;
|
||||
const galImage = `${canonicalBase}/images/og-image.jpg`;
|
||||
|
||||
const galTags = [
|
||||
`<meta property="og:title" content="${escapeHtml(galTitle)}" />`,
|
||||
`<meta property="og:description" content="${escapeHtml(galDesc)}" />`,
|
||||
`<meta property="og:type" content="website" />`,
|
||||
`<meta property="og:url" content="${escapeHtml(galUrl)}" />`,
|
||||
`<meta property="og:image" content="${escapeHtml(galImage)}" />`,
|
||||
`<meta property="og:image:secure_url" content="${escapeHtml(galImage)}" />`,
|
||||
`<meta property="og:image:width" content="1200" />`,
|
||||
`<meta property="og:image:height" content="630" />`,
|
||||
`<meta property="og:image:type" content="image/jpeg" />`,
|
||||
`<meta property="og:site_name" content="Folx Music Television" />`,
|
||||
`<meta property="og:locale" content="de_DE" />`,
|
||||
`<meta name="twitter:card" content="summary_large_image" />`,
|
||||
`<meta name="twitter:title" content="${escapeHtml(galTitle)}" />`,
|
||||
`<meta name="twitter:description" content="${escapeHtml(galDesc)}" />`,
|
||||
`<meta name="twitter:image" content="${escapeHtml(galImage)}" />`,
|
||||
`<meta name="description" content="${escapeHtml(galDesc)}" />`,
|
||||
`<meta name="keywords" content="Fotogalerie, Volksmusik Fotos, Schlager Bilder, Konzertfotos, Backstage, FOLX TV, Volksmusik Stars" />`,
|
||||
`<link rel="canonical" href="${escapeHtml(galUrl)}" />`,
|
||||
`<title>${escapeHtml(galTitle)}</title>`,
|
||||
].join("\n ");
|
||||
|
||||
template = template.replace(/<title>[^<]*<\/title>/, galTags);
|
||||
}
|
||||
|
||||
if (url.match(/^\/horoskop(\/|$|\?)/)) {
|
||||
template = stripExistingMeta(template);
|
||||
const signMatch = url.match(/^\/horoskop\/([^?#]+)/);
|
||||
|
||||
Reference in New Issue
Block a user