diff options
| author | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-21 20:41:54 +0100 |
|---|---|---|
| committer | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-21 20:41:54 +0100 |
| commit | 552bb8d624017a4d810e33280e3ae84ab87eed5c (patch) | |
| tree | 34f1947f9ee6913b71d1233bb2e89096132bfaba /src/layouts | |
| parent | a17d8c4b6f7ed96d52d0c9155c809786a2e66c7a (diff) | |
Adds skip link
Diffstat (limited to 'src/layouts')
| -rw-r--r-- | src/layouts/Article.astro | 2 | ||||
| -rw-r--r-- | src/layouts/Layout.astro | 1 | ||||
| -rw-r--r-- | src/layouts/Page.astro | 2 |
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> |
