From 34c1c68943cea15e410073e5a2085204b16680b8 Mon Sep 17 00:00:00 2001 From: Marc Froehlich Date: Mon, 6 Jul 2026 02:19:28 +0200 Subject: [PATCH] Add SEO metadata, robots and sitemap --- website/src/_layouts/base.njk | 13 +++++++++++++ website/src/index.njk | 20 +++++++++++++++++++- website/src/robots.txt | 4 ++++ website/src/sitemap.njk | 14 ++++++++++++++ 4 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 website/src/robots.txt create mode 100644 website/src/sitemap.njk diff --git a/website/src/_layouts/base.njk b/website/src/_layouts/base.njk index 690716f..2a93300 100644 --- a/website/src/_layouts/base.njk +++ b/website/src/_layouts/base.njk @@ -5,6 +5,19 @@ {{ title or "KST4Contest" }} + + + + + + + + + + + + + diff --git a/website/src/index.njk b/website/src/index.njk index 10a3cc8..a779832 100644 --- a/website/src/index.njk +++ b/website/src/index.njk @@ -36,4 +36,22 @@ description: KST4Contest is a modern ON4KST chat client built for VHF, UHF and S

Windows, Linux and macOS builds are published through GitHub releases.

- \ No newline at end of file + + + \ No newline at end of file diff --git a/website/src/robots.txt b/website/src/robots.txt new file mode 100644 index 0000000..433e07c --- /dev/null +++ b/website/src/robots.txt @@ -0,0 +1,4 @@ +User-agent: * +Allow: / + +Sitemap: https://kst4contest.hamradioonline.de/sitemap.xml \ No newline at end of file diff --git a/website/src/sitemap.njk b/website/src/sitemap.njk new file mode 100644 index 0000000..d32f24a --- /dev/null +++ b/website/src/sitemap.njk @@ -0,0 +1,14 @@ +--- +permalink: /sitemap.xml +eleventyExcludeFromCollections: true +--- + + +{%- for page in collections.all %} + {%- if page.url and not page.data.eleventyExcludeFromCollections %} + + https://kst4contest.hamradioonline.de{{ page.url }} + + {%- endif %} +{%- endfor %} + \ No newline at end of file