Skip to content

Commit

Permalink
Fix h1 Accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
WebDevSimplified committed Oct 17, 2023
1 parent fef9812 commit 20b055e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 19 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@ yarn-error.log*



.vscode
.vscode
# Local Netlify folder
.netlify
31 changes: 16 additions & 15 deletions src/components/BaseHead.astro
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
export interface Props {
title: string
description: string
permalink: string
title: string
description: string
permalink: string
}
const { title, description, permalink } = Astro.props
---
Expand Down Expand Up @@ -32,22 +32,23 @@ const { title, description, permalink } = Astro.props
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&family=IBM+Plex+Sans:wght@400;700&display=swap"
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&family=IBM+Plex+Sans:wght@400;700&display=swap"
/>

<!-- Analytics -->
<script
defer
data-domain={import.meta.env.PROD ? "blog.webdevsimplified.com" : "testing"}
data-api="https://royal-surf-e76e.kyle-0ed.workers.dev/api/e"
src={`https://royal-surf-e76e.kyle-0ed.workers.dev/js/script.manual${
import.meta.env.PROD ? "" : ".local"
}.js`}></script>
defer
data-domain={import.meta.env.PROD ? "blog.webdevsimplified.com" : "testing"}
data-api="https://royal-surf-e76e.kyle-0ed.workers.dev/api/e"
src={`https://royal-surf-e76e.kyle-0ed.workers.dev/js/script.manual${
import.meta.env.PROD ? "" : ".local"
}.js`}
></script>
<script is:inline>
window.plausible =
window.plausible ||
function () {
; (window.plausible.q = window.plausible.q || []).push(arguments)
}
window.plausible ||
function () {
; (window.plausible.q = window.plausible.q || []).push(arguments)
}
</script>
8 changes: 5 additions & 3 deletions src/components/BlogPostPreview.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ export default function BlogPostPreview({ post }) {
textAlign: "left",
}}
>
<a href={post.url} style={{ display: "inline-block", width: "100%" }}>
<h1 className="preview-title">{post.title}</h1>
</a>
<h2 className="preview-title">
<a className="preview-title" href={post.url}>
{post.title}
</a>
</h2>
<p
style={{
margin: 0,
Expand Down

0 comments on commit 20b055e

Please sign in to comment.