Skip to content

Commit 20b055e

Browse files
Fix h1 Accessibility
1 parent fef9812 commit 20b055e

File tree

3 files changed

+24
-19
lines changed

3 files changed

+24
-19
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,6 @@ yarn-error.log*
1919

2020

2121

22-
.vscode
22+
.vscode
23+
# Local Netlify folder
24+
.netlify

src/components/BaseHead.astro

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
export interface Props {
3-
title: string
4-
description: string
5-
permalink: string
3+
title: string
4+
description: string
5+
permalink: string
66
}
77
const { title, description, permalink } = Astro.props
88
---
@@ -32,22 +32,23 @@ const { title, description, permalink } = Astro.props
3232
<!-- Fonts -->
3333
<link rel="preconnect" href="https://fonts.gstatic.com" />
3434
<link
35-
rel="stylesheet"
36-
href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&family=IBM+Plex+Sans:wght@400;700&display=swap"
35+
rel="stylesheet"
36+
href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&family=IBM+Plex+Sans:wght@400;700&display=swap"
3737
/>
3838

3939
<!-- Analytics -->
4040
<script
41-
defer
42-
data-domain={import.meta.env.PROD ? "blog.webdevsimplified.com" : "testing"}
43-
data-api="https://royal-surf-e76e.kyle-0ed.workers.dev/api/e"
44-
src={`https://royal-surf-e76e.kyle-0ed.workers.dev/js/script.manual${
45-
import.meta.env.PROD ? "" : ".local"
46-
}.js`}></script>
41+
defer
42+
data-domain={import.meta.env.PROD ? "blog.webdevsimplified.com" : "testing"}
43+
data-api="https://royal-surf-e76e.kyle-0ed.workers.dev/api/e"
44+
src={`https://royal-surf-e76e.kyle-0ed.workers.dev/js/script.manual${
45+
import.meta.env.PROD ? "" : ".local"
46+
}.js`}
47+
></script>
4748
<script is:inline>
4849
window.plausible =
49-
window.plausible ||
50-
function () {
51-
; (window.plausible.q = window.plausible.q || []).push(arguments)
52-
}
50+
window.plausible ||
51+
function () {
52+
; (window.plausible.q = window.plausible.q || []).push(arguments)
53+
}
5354
</script>

src/components/BlogPostPreview.jsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ export default function BlogPostPreview({ post }) {
1414
textAlign: "left",
1515
}}
1616
>
17-
<a href={post.url} style={{ display: "inline-block", width: "100%" }}>
18-
<h1 className="preview-title">{post.title}</h1>
19-
</a>
17+
<h2 className="preview-title">
18+
<a className="preview-title" href={post.url}>
19+
{post.title}
20+
</a>
21+
</h2>
2022
<p
2123
style={{
2224
margin: 0,

0 commit comments

Comments
 (0)