SEO: /category/<ime> dobi svoj naslov, opis, canonical, CollectionPage in seznam clankov v HTML (prej HTML naslovnice s canonical / — soft 404); clanki s targetUrl (dnevni horoskop, recept) ne gredo vec v sitemap, ker so samo preusmeritve

This commit is contained in:
folx bot
2026-08-24 22:18:01 +02:00
parent ed8872226b
commit cee85ef210
2 changed files with 81 additions and 1 deletions
+4 -1
View File
@@ -92,7 +92,10 @@ export async function registerRoutes(
// Rubrike z onemusic.news imajo isto besedilo kot tam, zato jih ne oddajamo
// Googlu. V bazi in v /api/articles ostanejo — sidebar na TV jih potrebuje.
const ONE_RUBRIKEN = new Set(["Politik", "Promis", "Sport", "Musik & Film", "Wetter", "Finanzen", "Aktuelles"]);
const isOwn = (a: any) => !ONE_RUBRIKEN.has(a?.category || "");
// targetUrl = clanek je samo preusmeritev (dnevni horoskop, recept). Taki
// ne smejo v sitemap: Google jih oznaci kot "stran s preusmeritvijo" in
// porabi crawl budget za nic.
const isOwn = (a: any) => !ONE_RUBRIKEN.has(a?.category || "") && !a?.targetUrl;
const SITE = "https://folx.tv";
const xmlEscape = (s: string) =>