summaryrefslogtreecommitdiff
path: root/src/pages
diff options
context:
space:
mode:
authorJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-08-31 10:28:09 +0100
committerGitHub <noreply@github.com>2023-08-31 10:28:09 +0100
commit244fda8c63356bfcc19a0ea437edf36458e4bc9b (patch)
treea54fe436f4d71cd9d735f34b4f7b8829b1af4456 /src/pages
parent73bbbe8307f9474e751236a44db2dcc6924c5035 (diff)
parent5bfb00f6cdbb369d834dbe27d213d80a821f8036 (diff)
Merge pull request #4 from Sycamost/dev
Changes site to scotsleidassocie.org
Diffstat (limited to 'src/pages')
-rw-r--r--src/pages/[locale]/index.astro4
-rw-r--r--src/pages/robots.txt.ts11
2 files changed, 13 insertions, 2 deletions
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);
<NewsIndex newsItems={mostRecentNewsItem ? [mostRecentNewsItem] : []} headingLevel="h3" />
{
mostRecentNewsItem && (
- <Button layoutClasses="grid-span-3 grid-prose-end" href={`/${locale}/news`}>
+ <Button classNames="grid-span-3 grid-prose-end" href={`/${locale}/news`}>
{t(tPage, { key: 'aw-news' })} ▶
</Button>
)
@@ -73,7 +73,7 @@ const mostRecentNewsItem = await getMostRecentNewsItem(locale);
<section>
<h2 set:html={t(tPage, { key: 'furthsettins' })} />
<p set:html={t(tPage, { key: 'furthsettins-para' })} />
- <Button layoutClasses="grid-span-3 grid-prose-end" href={`/${locale}/furthsettins`}>
+ <Button classNames="grid-span-3 grid-prose-end" href={`/${locale}/furthsettins`}>
{t(tPage, { key: 'aw-furthsettins' })} ▶
</Button>
</section>
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
+ `);
+}