summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-08-21 20:41:54 +0100
committerJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-08-21 20:41:54 +0100
commit552bb8d624017a4d810e33280e3ae84ab87eed5c (patch)
tree34f1947f9ee6913b71d1233bb2e89096132bfaba /src
parenta17d8c4b6f7ed96d52d0c9155c809786a2e66c7a (diff)
Adds skip link
Diffstat (limited to 'src')
-rw-r--r--src/layouts/Article.astro2
-rw-r--r--src/layouts/Layout.astro1
-rw-r--r--src/layouts/Page.astro2
3 files changed, 3 insertions, 2 deletions
diff --git a/src/layouts/Article.astro b/src/layouts/Article.astro
index 5e95147..253479b 100644
--- a/src/layouts/Article.astro
+++ b/src/layouts/Article.astro
@@ -9,7 +9,7 @@ const { title } = Astro.props;
---
<Layout title={title}>
- <article>
+ <article id="main">
<slot />
</article>
</Layout>
diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro
index bb30305..a2fb963 100644
--- a/src/layouts/Layout.astro
+++ b/src/layouts/Layout.astro
@@ -27,6 +27,7 @@ const t = translate(locale);
<title>{title} | {t(site, { key: 'title' })}</title>
</head>
<body id="top">
+ <a class="btn skip-to-content" href="#main">Skip to content</a>
<Navbar />
<slot />
<Footer />
diff --git a/src/layouts/Page.astro b/src/layouts/Page.astro
index 145a7d6..bc7a095 100644
--- a/src/layouts/Page.astro
+++ b/src/layouts/Page.astro
@@ -9,7 +9,7 @@ const { title } = Astro.props;
---
<Layout title={title}>
- <main>
+ <main id="main">
<slot />
</main>
</Layout>