Aktuelles: robots preko setRobots, da ne ostane dvojni meta robots
This commit is contained in:
+1
-1
@@ -619,10 +619,10 @@ export function serveStatic(app: Express) {
|
||||
template = stripExistingMeta(template);
|
||||
const aktTitle = "Aktuelles | Folx Music Television";
|
||||
template = template.replace(/<title>[^<]*<\/title>/, [
|
||||
'<meta name="robots" content="noindex, follow" />',
|
||||
`<link rel="canonical" href="${canonicalBase}/aktuelles" />`,
|
||||
`<title>${escapeHtml(aktTitle)}</title>`,
|
||||
].join("\n "));
|
||||
template = setRobots(template, "noindex, follow");
|
||||
res.status(200).set({ "Content-Type": "text/html" }).end(template);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user