Skip to content

Commit 8c68a76

Browse files
committed
Fix favicon reference and add main landmark for accessibility
- Update Layout.astro to use favicon.ico instead of non-existent favicon.svg - Add main landmark wrapper to index.astro to fix Lighthouse accessibility error
1 parent cb0937f commit 8c68a76

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/layouts/Layout.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const canonicalUrl = new URL(Astro.url.pathname, Astro.site || 'https://greenflu
1818
<meta charset="UTF-8" />
1919
<meta name="description" content={description} />
2020
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
21-
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
21+
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
2222
<link rel="canonical" href={canonicalUrl} />
2323
<title>{title}</title>
2424

src/pages/index.astro

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ import Footer from '../components/Footer.astro';
1111
<Layout title="GreenFlux Portfolio">
1212
<div id="scroll-progress"></div>
1313
<Navigation />
14-
<Hero />
15-
<Portfolio />
16-
<About />
17-
<Social />
14+
<main>
15+
<Hero />
16+
<Portfolio />
17+
<About />
18+
<Social />
19+
</main>
1820
<Footer />
1921

2022
<script>

0 commit comments

Comments
 (0)