From 737e6161f47657b96a567de20ea5e3f0ef08e3bb Mon Sep 17 00:00:00 2001 From: Joe Carstairs <65492573+Sycamost@users.noreply.github.com> Date: Thu, 31 Aug 2023 09:26:10 +0100 Subject: Adds robots.txt --- src/pages/robots.txt | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/pages/robots.txt (limited to 'src/pages') diff --git a/src/pages/robots.txt b/src/pages/robots.txt new file mode 100644 index 0000000..1055a1f --- /dev/null +++ b/src/pages/robots.txt @@ -0,0 +1,5 @@ +User-agent: * +User-agent: AdsBot-Google +Disallow: */payment-success-confirmation + +Sitemap: https://scotsleidassocie.org/sitemap-index.xml -- cgit v1.2.3 From 30a256d434f5cab7feeef16836fbf1e00ad5f83b Mon Sep 17 00:00:00 2001 From: Joe Carstairs <65492573+Sycamost@users.noreply.github.com> Date: Thu, 31 Aug 2023 10:20:51 +0100 Subject: Adds RSS button --- src/pages/[locale]/index.astro | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pages') diff --git a/src/pages/[locale]/index.astro b/src/pages/[locale]/index.astro index 39db161..f031e8e 100644 --- a/src/pages/[locale]/index.astro +++ b/src/pages/[locale]/index.astro @@ -27,7 +27,7 @@ const mostRecentNewsItem = await getMostRecentNewsItem(locale); { mostRecentNewsItem && ( - ) @@ -73,7 +73,7 @@ const mostRecentNewsItem = await getMostRecentNewsItem(locale);

-

-- cgit v1.2.3 From e55874883b8c91577f7125adfecc11ffd55601b2 Mon Sep 17 00:00:00 2001 From: Joe Carstairs <65492573+Sycamost@users.noreply.github.com> Date: Thu, 31 Aug 2023 10:22:33 +0100 Subject: fixes robots.txt --- src/pages/robots.txt | 5 ----- src/pages/robots.txt.ts | 11 +++++++++++ 2 files changed, 11 insertions(+), 5 deletions(-) delete mode 100644 src/pages/robots.txt create mode 100644 src/pages/robots.txt.ts (limited to 'src/pages') diff --git a/src/pages/robots.txt b/src/pages/robots.txt deleted file mode 100644 index 1055a1f..0000000 --- a/src/pages/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -User-agent: * -User-agent: AdsBot-Google -Disallow: */payment-success-confirmation - -Sitemap: https://scotsleidassocie.org/sitemap-index.xml diff --git a/src/pages/robots.txt.ts b/src/pages/robots.txt.ts new file mode 100644 index 0000000..c7e396f --- /dev/null +++ b/src/pages/robots.txt.ts @@ -0,0 +1,11 @@ +import type { APIContext } from 'astro'; + +export async function get(context: APIContext) { + return new Response(` + User-agent: * + User-agent: AdsBot-Google + Disallow: */payment-success-confirmation + + Sitemap: ${context.site}sitemap-index.xml + `); +} -- cgit v1.2.3