diff options
| author | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-18 18:35:45 +0100 |
|---|---|---|
| committer | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-18 18:35:45 +0100 |
| commit | dcf5bd40027f4264d2cd201278824e185869c412 (patch) | |
| tree | 71e504dcaca31a29d7401a57f6375cb4c2d4082b /src | |
| parent | 363cb70343106b5a66b8fedf261ca0122a242302 (diff) | |
Back to top link goes RIGHT to the top
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/Footer.astro | 2 | ||||
| -rw-r--r-- | src/layouts/Article.astro | 2 | ||||
| -rw-r--r-- | src/layouts/Layout.astro | 2 | ||||
| -rw-r--r-- | src/layouts/Page.astro | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/components/Footer.astro b/src/components/Footer.astro index 1e97633..a346877 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -4,6 +4,6 @@ <footer> <p class="back-to-top-link"> - <a class="btn" href="#main">▴ Back til tap</a> + <a class="btn" href="#top">▴ Back til tap</a> </p> </footer> diff --git a/src/layouts/Article.astro b/src/layouts/Article.astro index 253479b..5e95147 100644 --- a/src/layouts/Article.astro +++ b/src/layouts/Article.astro @@ -9,7 +9,7 @@ const { title } = Astro.props; --- <Layout title={title}> - <article id="main"> + <article> <slot /> </article> </Layout> diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 54b8c25..ff58e82 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -26,7 +26,7 @@ const t = translate(locale); <meta name="generator" content={Astro.generator} /> <title>{title} | {t(site, { key: 'title' })}</title> </head> - <body> + <body id="top"> <Navbar /> <slot /> <Footer /> diff --git a/src/layouts/Page.astro b/src/layouts/Page.astro index bc7a095..145a7d6 100644 --- a/src/layouts/Page.astro +++ b/src/layouts/Page.astro @@ -9,7 +9,7 @@ const { title } = Astro.props; --- <Layout title={title}> - <main id="main"> + <main> <slot /> </main> </Layout> |
