From d72316cf8605799d317231db5f57aa2f950a985e Mon Sep 17 00:00:00 2001 From: kevin Date: Mon, 18 Mar 2024 13:12:37 +0100 Subject: [PATCH] feat(seo): add sitemap --- src/robots.txt | 2 ++ src/sitemap.njk | 13 +++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 src/sitemap.njk diff --git a/src/robots.txt b/src/robots.txt index e3858bf..2e1bc85 100644 --- a/src/robots.txt +++ b/src/robots.txt @@ -1,3 +1,5 @@ +Sitemap: https://www.astrolabe.coop/sitemap.xml + User-agent: * Disallow: /fonts/ Disallow: /form/ diff --git a/src/sitemap.njk b/src/sitemap.njk new file mode 100644 index 0000000..9390e5e --- /dev/null +++ b/src/sitemap.njk @@ -0,0 +1,13 @@ +--- +permalink: /sitemap.xml +eleventyExcludeFromCollections: true +--- + + + {% for page in collections.all %} + + {{ site.url }}{{ page.url | url }} + {{ page.date.toISOString() }} + + {% endfor %} +