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);
|
template = stripExistingMeta(template);
|
||||||
const aktTitle = "Aktuelles | Folx Music Television";
|
const aktTitle = "Aktuelles | Folx Music Television";
|
||||||
template = template.replace(/<title>[^<]*<\/title>/, [
|
template = template.replace(/<title>[^<]*<\/title>/, [
|
||||||
'<meta name="robots" content="noindex, follow" />',
|
|
||||||
`<link rel="canonical" href="${canonicalBase}/aktuelles" />`,
|
`<link rel="canonical" href="${canonicalBase}/aktuelles" />`,
|
||||||
`<title>${escapeHtml(aktTitle)}</title>`,
|
`<title>${escapeHtml(aktTitle)}</title>`,
|
||||||
].join("\n "));
|
].join("\n "));
|
||||||
|
template = setRobots(template, "noindex, follow");
|
||||||
res.status(200).set({ "Content-Type": "text/html" }).end(template);
|
res.status(200).set({ "Content-Type": "text/html" }).end(template);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user