Skip to content

Commit ffc5bfd

Browse files
committed
chore: Attempt to make the site's markup a tad more accessible
So far I've only sort of tested this using Firefox's accessibility tools.
1 parent 9972143 commit ffc5bfd

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

pages/index.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,20 @@
2626
</script>
2727
</head>
2828
<body>
29-
<header class="site-wide">
29+
<header role="banner" class="site-wide">
3030
<div class="banner">
3131
<a class="h-card" href="https://chrisnewtn.com">
3232
<h1 class="p-name logo">Chris Newton</h1>
3333
</a>
34-
<a href="https://github.com/chrisnewtn" rel="me">
34+
<a aria-label="GitHub profile" href="https://github.com/chrisnewtn" rel="me">
3535
<picture class="social">
3636
<source srcset="assets/github-mark-white.svg" media="(prefers-color-scheme: dark)">
3737
<img src="assets/github-mark.svg" alt="The GitHub Octocat logo">
3838
</picture>
3939
</a>
4040
</div>
4141
</header>
42-
<nav>
42+
<nav aria-label="Main">
4343
<ul>
4444
<li>About</li>
4545
<li><a href="posts/index.html">Posts</a></li>
@@ -49,12 +49,14 @@ <h1 class="p-name logo">Chris Newton</h1>
4949
<article>
5050
<h1>About</h1>
5151
<p>Hi I'm Chris. I'm a software developer based in Brighton. My pronouns are he/him. Welcome to my website.</p>
52-
<p>My focus is JavaScript, whether Node.js or the browser. It's been my <a rel="me" href="https://www.linkedin.com/in/chrisnewtn/">career</a> for well over a decade at this point. I've seen things you wouldn't believe, etc.</p>
52+
<p>My focus is JavaScript, whether Node.js or the browser. It's been <a rel="me" href="https://www.linkedin.com/in/chrisnewtn/">my career</a> for well over a decade at this point. I've seen things you wouldn't believe, etc.</p>
5353
<p>This site is hosted using <a href="https://pages.github.com/">GitHub Pages</a>. The DNS is handled by <a href="https://gandi.net">Gandi</a>. I don't set any cookies or monitor any traffic.</p>
54-
<p>You can view the source code <a href="https://github.com/chrisnewtn/chrisnewtn.github.io/">here</a>. I'm writing it in the open, both the content and the static site generator that puts it together. It's a work in progress, and an early one at that.</p>
54+
<p>You can <a href="https://github.com/chrisnewtn/chrisnewtn.github.io/">view the source code here</a>. I'm writing it in the open, both the content and the static site generator that puts it together. It's a work in progress, and an early one at that.</p>
5555
</article>
5656
<section class="gol-container">
5757
<game-of-life
58+
role="img"
59+
aria-label="A running simulation of Conway's Game of Life"
5860
dark-bg-color="#fafafa"
5961
dark-color="#0a0a0a"
6062
bg-color="#0a0a0a"

pages/posts/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@
99
<link rel="stylesheet" href="../style.css">
1010
</head>
1111
<body>
12-
<header class="site-wide">
12+
<header role="banner" class="site-wide">
1313
<div class="banner">
1414
<h1 class="logo">Chris Newton</h1>
15-
<a href="https://github.com/chrisnewtn" rel="me">
15+
<a aria-label="GitHub profile" href="https://github.com/chrisnewtn" rel="me">
1616
<picture class="social">
1717
<source srcset="../assets/github-mark-white.svg" media="(prefers-color-scheme: dark)">
1818
<img src="../assets/github-mark.svg" alt="The GitHub Octocat logo">
1919
</picture>
2020
</a>
2121
</div>
2222
</header>
23-
<nav>
23+
<nav aria-label="Main">
2424
<ul>
2525
<li><a href="../index.html">About</a></li>
2626
<li>Posts</li>

pages/posts/post.template.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@
1111
<script type="module" src="post.js"></script>
1212
</head>
1313
<body>
14-
<header class="site-wide">
14+
<header role="banner" class="site-wide">
1515
<div class="banner">
1616
<h1 class="logo">Chris Newton</h1>
17-
<a href="https://github.com/chrisnewtn" rel="me">
17+
<a aria-label="GitHub profile" href="https://github.com/chrisnewtn" rel="me">
1818
<picture class="social">
1919
<source srcset="../assets/github-mark-white.svg" media="(prefers-color-scheme: dark)">
2020
<img src="../assets/github-mark.svg" alt="The GitHub Octocat logo">
2121
</picture>
2222
</a>
2323
</div>
2424
</header>
25-
<nav>
25+
<nav aria-label="Main">
2626
<ul>
2727
<li><a href="../index.html">About</a></li>
2828
<li><a href="index.html">Posts</a></li>

0 commit comments

Comments
 (0)