diff --git a/code/robots.txt b/code/robots.txt deleted file mode 100644 index 4630260..0000000 --- a/code/robots.txt +++ /dev/null @@ -1,4 +0,0 @@ -User-agent: * -Allow: / - -Sitemap: https://www.moonweb.org/code/sitemap.xml diff --git a/code/sitemap.xml.njk b/code/sitemap.xml.njk deleted file mode 100644 index a8197b8..0000000 --- a/code/sitemap.xml.njk +++ /dev/null @@ -1,6 +0,0 @@ ---- -permalink: /code/sitemap.xml -sitemapCollection: "code" -eleventyExcludeFromCollections: true ---- -{% include "sitemap.njk" %} diff --git a/eleventy.config.js b/eleventy.config.js index 02ac173..d470ed4 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -27,16 +27,14 @@ module.exports = function (eleventyConfig) { // Root-level shared assets eleventyConfig.addPassthroughCopy({ "shared/base.css": "shared-base.css" }); eleventyConfig.addPassthroughCopy({ "shared/favicon/hub.svg": "favicon.svg" }); + eleventyConfig.addPassthroughCopy({ "hub/robots.txt": "robots.txt" }); - // Per-section assets: favicon, robots.txt + // Per-section assets: favicon for (const [section, cfg] of Object.entries(SITES)) { const prefix = cfg.pathPrefix || "."; eleventyConfig.addPassthroughCopy({ [`shared/favicon/${section}.svg`]: `${prefix}/favicon.svg`, }); - eleventyConfig.addPassthroughCopy({ - [`${section}/robots.txt`]: `${prefix}/robots.txt`, - }); } // Hub: profile photo diff --git a/hub/robots.txt b/hub/robots.txt index 31839f7..dde49ff 100644 --- a/hub/robots.txt +++ b/hub/robots.txt @@ -2,8 +2,4 @@ User-agent: * Allow: / Sitemap: https://www.moonweb.org/sitemap.xml -Sitemap: https://www.moonweb.org/infra/sitemap.xml -Sitemap: https://www.moonweb.org/smarthome/sitemap.xml -Sitemap: https://www.moonweb.org/code/sitemap.xml -Sitemap: https://www.moonweb.org/retro/sitemap.xml Sitemap: https://www.moonweb.org/timecapsule/sitemap.xml diff --git a/hub/sitemap.xml.njk b/hub/sitemap.xml.njk index a3871f1..7cbc214 100644 --- a/hub/sitemap.xml.njk +++ b/hub/sitemap.xml.njk @@ -1,6 +1,5 @@ --- permalink: /sitemap.xml -sitemapCollection: "hub" eleventyExcludeFromCollections: true --- {% include "sitemap.njk" %} diff --git a/infra/robots.txt b/infra/robots.txt deleted file mode 100644 index c8516a3..0000000 --- a/infra/robots.txt +++ /dev/null @@ -1,4 +0,0 @@ -User-agent: * -Allow: / - -Sitemap: https://www.moonweb.org/infra/sitemap.xml diff --git a/infra/sitemap.xml.njk b/infra/sitemap.xml.njk deleted file mode 100644 index 10e9710..0000000 --- a/infra/sitemap.xml.njk +++ /dev/null @@ -1,6 +0,0 @@ ---- -permalink: /infra/sitemap.xml -sitemapCollection: "infra" -eleventyExcludeFromCollections: true ---- -{% include "sitemap.njk" %} diff --git a/retro/robots.txt b/retro/robots.txt deleted file mode 100644 index e674188..0000000 --- a/retro/robots.txt +++ /dev/null @@ -1,4 +0,0 @@ -User-agent: * -Allow: / - -Sitemap: https://www.moonweb.org/retro/sitemap.xml diff --git a/retro/sitemap.xml.njk b/retro/sitemap.xml.njk deleted file mode 100644 index 5e87748..0000000 --- a/retro/sitemap.xml.njk +++ /dev/null @@ -1,6 +0,0 @@ ---- -permalink: /retro/sitemap.xml -sitemapCollection: "retro" -eleventyExcludeFromCollections: true ---- -{% include "sitemap.njk" %} diff --git a/shared/_includes/sitemap.njk b/shared/_includes/sitemap.njk index 0ba6c1d..470507f 100644 --- a/shared/_includes/sitemap.njk +++ b/shared/_includes/sitemap.njk @@ -1,10 +1,9 @@ -{%- set sitemapPages = collections[sitemapCollection] if sitemapCollection else collections.all %} -{%- for page in sitemapPages %} +{%- for page in collections.all %} {%- if not page.url.includes("404") %} - {{ site.url }}{{ pathPrefix }}{{ page.url }} + {{ site.url }}{{ page.url }} {{ page.date | date }} {% if page.url == "/" %}weekly{% else %}monthly{% endif %} {% if page.url == "/" %}1.0{% elif parent %}0.8{% else %}0.7{% endif %} diff --git a/smarthome/robots.txt b/smarthome/robots.txt deleted file mode 100644 index dbc62eb..0000000 --- a/smarthome/robots.txt +++ /dev/null @@ -1,4 +0,0 @@ -User-agent: * -Allow: / - -Sitemap: https://www.moonweb.org/smarthome/sitemap.xml diff --git a/smarthome/sitemap.xml.njk b/smarthome/sitemap.xml.njk deleted file mode 100644 index 2491d73..0000000 --- a/smarthome/sitemap.xml.njk +++ /dev/null @@ -1,6 +0,0 @@ ---- -permalink: /smarthome/sitemap.xml -sitemapCollection: "smarthome" -eleventyExcludeFromCollections: true ---- -{% include "sitemap.njk" %} diff --git a/stefankoelle/pdf/cv.pdf b/stefankoelle/pdf/cv.pdf index 4f4ebc5..9707aac 100644 Binary files a/stefankoelle/pdf/cv.pdf and b/stefankoelle/pdf/cv.pdf differ