Improve website content and fix navigation issues
Update website meta tags, SEO information, and fix a banner overlay bug to ensure all interactive elements are clickable. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 23852c00-4779-460a-9e0c-d09fee4b6c92 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 60ed045f-57e0-4c65-bc71-4205e0064bbb Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/f209e72a-0939-48fa-84fc-57854de71967/23852c00-4779-460a-9e0c-d09fee4b6c92/aNXfGlM Replit-Helium-Checkpoint-Created: true
This commit is contained in:
@@ -821,6 +821,7 @@ export async function registerRoutes(
|
||||
{ loc: "/gallery", priority: "0.7", changefreq: "weekly" },
|
||||
{ loc: "/horoskop", priority: "0.7", changefreq: "daily" },
|
||||
{ loc: "/rezepte", priority: "0.6", changefreq: "monthly" },
|
||||
{ loc: "/kontakt", priority: "0.5", changefreq: "yearly" },
|
||||
{ loc: "/empfang-folx-tv", priority: "0.5", changefreq: "monthly" },
|
||||
{ loc: "/ueber-uns", priority: "0.4", changefreq: "yearly" },
|
||||
{ loc: "/impressum", priority: "0.3", changefreq: "yearly" },
|
||||
@@ -888,6 +889,7 @@ export async function registerRoutes(
|
||||
Allow: /
|
||||
Disallow: /api/
|
||||
Disallow: /search
|
||||
Disallow: /admin/
|
||||
|
||||
Sitemap: https://folx.tv/sitemap.xml
|
||||
`;
|
||||
|
||||
+4
-1
@@ -21,6 +21,7 @@ function stripExistingMeta(html: string): string {
|
||||
html = html.replace(/<meta\s+name="twitter:[^"]*"[^>]*>\s*/gi, "");
|
||||
html = html.replace(/<meta\s+name="description"[^>]*>\s*/gi, "");
|
||||
html = html.replace(/<meta\s+name="keywords"[^>]*>\s*/gi, "");
|
||||
html = html.replace(/<link\s+rel="canonical"[^>]*>\s*/gi, "");
|
||||
return html;
|
||||
}
|
||||
|
||||
@@ -80,7 +81,9 @@ export function serveStatic(app: Express) {
|
||||
`<meta name="twitter:description" content="${escapeHtml(article.excerpt)}" />`,
|
||||
`<meta name="twitter:image" content="${escapeHtml(finalImage)}" />`,
|
||||
`<meta name="description" content="${escapeHtml(article.excerpt)}" />`,
|
||||
`<title>${escapeHtml(article.title)} - Folx Music Television</title>`,
|
||||
`<meta name="keywords" content="Volksmusik, Schlager, ${escapeHtml(article.title)}, ${escapeHtml(article.category || 'News')}, FOLX TV" />`,
|
||||
`<link rel="canonical" href="${escapeHtml(articleUrl)}" />`,
|
||||
`<title>${escapeHtml(article.title)} - Volksmusik & Schlager | Folx Music Television</title>`,
|
||||
].join("\n ");
|
||||
|
||||
template = template.replace(/<title>[^<]*<\/title>/, ogTags);
|
||||
|
||||
+4
-1
@@ -27,6 +27,7 @@ function stripExistingMeta(html: string): string {
|
||||
html = html.replace(/<meta\s+name="twitter:[^"]*"[^>]*>\s*/gi, "");
|
||||
html = html.replace(/<meta\s+name="description"[^>]*>\s*/gi, "");
|
||||
html = html.replace(/<meta\s+name="keywords"[^>]*>\s*/gi, "");
|
||||
html = html.replace(/<link\s+rel="canonical"[^>]*>\s*/gi, "");
|
||||
return html;
|
||||
}
|
||||
|
||||
@@ -101,7 +102,9 @@ export async function setupVite(server: Server, app: Express) {
|
||||
`<meta name="twitter:description" content="${escapeHtml(article.excerpt)}" />`,
|
||||
`<meta name="twitter:image" content="${escapeHtml(finalImage)}" />`,
|
||||
`<meta name="description" content="${escapeHtml(article.excerpt)}" />`,
|
||||
`<title>${escapeHtml(article.title)} - Folx Music Television</title>`,
|
||||
`<meta name="keywords" content="Volksmusik, Schlager, ${escapeHtml(article.title)}, ${escapeHtml(article.category || 'News')}, FOLX TV" />`,
|
||||
`<link rel="canonical" href="${escapeHtml(articleUrl)}" />`,
|
||||
`<title>${escapeHtml(article.title)} - Volksmusik & Schlager | Folx Music Television</title>`,
|
||||
].join("\n ");
|
||||
|
||||
template = template.replace(/<title>[^<]*<\/title>/, ogTags);
|
||||
|
||||
Reference in New Issue
Block a user