diff --git a/public/assets/favicon.png b/public/assets/favicon.png index 39e00f1..1961410 100644 Binary files a/public/assets/favicon.png and b/public/assets/favicon.png differ diff --git a/public/datenschutz.html b/public/datenschutz.html index 760783d..2c4795c 100644 --- a/public/datenschutz.html +++ b/public/datenschutz.html @@ -7,7 +7,7 @@ - +
diff --git a/public/gamejam.html b/public/gamejam.html index 09a3967..2c48538 100644 --- a/public/gamejam.html +++ b/public/gamejam.html @@ -13,8 +13,11 @@ + + + - + diff --git a/public/impressum.html b/public/impressum.html index 86cd47a..9bb5d9f 100644 --- a/public/impressum.html +++ b/public/impressum.html @@ -7,7 +7,7 @@ - + diff --git a/public/index.html b/public/index.html index cb29899..a6f6f00 100644 --- a/public/index.html +++ b/public/index.html @@ -16,6 +16,9 @@ + + + @@ -35,7 +38,7 @@ "sameAs": ["https://www.linkedin.com/company/toolctrl/"] } - + diff --git a/public/robots.txt b/public/robots.txt index 3895af2..c88b802 100644 --- a/public/robots.txt +++ b/public/robots.txt @@ -1,4 +1,5 @@ User-agent: * Allow: / +Disallow: /gamejam-games/ Sitemap: https://tool-ctrl.de/sitemap.xml diff --git a/public/techday.html b/public/techday.html index 3352d00..be89f94 100644 --- a/public/techday.html +++ b/public/techday.html @@ -15,6 +15,9 @@ + + + @@ -44,7 +47,7 @@ } } - + diff --git a/server.js b/server.js index b8b624c..6309b7d 100644 --- a/server.js +++ b/server.js @@ -214,10 +214,15 @@ function serveStatic(req, res) { const cacheControl = ext === ".html" ? "no-cache" : "public, max-age=31536000, immutable"; - res.writeHead(200, { + const headers = { "Content-Type": MIME[ext] || "application/octet-stream", "Cache-Control": cacheControl - }); + }; + /* Hochgeladene GameJam-Spiele nicht indexieren (Fremdcontent) */ + if (urlPath.startsWith("/gamejam-games/")) { + headers["X-Robots-Tag"] = "noindex"; + } + res.writeHead(200, headers); fs.createReadStream(filePath).pipe(res); }); }