aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Cleberg <hello@cleberg.net>2024-02-03 17:35:25 -0600
committerChristian Cleberg <hello@cleberg.net>2024-02-03 17:35:25 -0600
commit2aae94ba77c3dd812a4eb645241c648440fc493e (patch)
tree6bebf20771fe823477656f19e646bab453f4a82f
parent591370bc5b159053959fa946c8e52e5e56604abf (diff)
downloadcleberg.net-2aae94ba77c3dd812a4eb645241c648440fc493e.tar.gz
cleberg.net-2aae94ba77c3dd812a4eb645241c648440fc493e.tar.bz2
cleberg.net-2aae94ba77c3dd812a4eb645241c648440fc493e.zip
add accessibility features
-rw-r--r--templates/base.html2
-rw-r--r--templates/page.html4
2 files changed, 4 insertions, 2 deletions
diff --git a/templates/base.html b/templates/base.html
index c075a42..1c9c40d 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -26,7 +26,7 @@
{% block extra_head %}{% endblock extra_head %}
</head>
<body>
- <nav class="site-nav">
+ <nav class="site-nav" aria-label="site-nav" role="navigation">
<ul>
<li><a href="/">Home</a></li>
<li><a href="/blog/">Blog</a></li>
diff --git a/templates/page.html b/templates/page.html
index b759184..c44e8a0 100644
--- a/templates/page.html
+++ b/templates/page.html
@@ -16,7 +16,7 @@
{% if page.toc %}
<details open>
<summary>Table of Contents</summary>
- <nav class="page-nav">
+ <nav class="page-nav" aria-label="page-nav" role="navigation">
<ul>
{% for h1 in page.toc %}
<li>
@@ -38,5 +38,7 @@
{% endif %}
</section>
+<article role="article">
{{ page.content | safe }}
+</article>
{% endblock content %}