Commit 52ace755c5

52ace755c5f4f0a8be8252764005e4f99d9a67ba

parent: 7a3e3b542f

Unsigned

cmc <hello@cleberg.net> · 2025-11-12 00:46 UTC

add skip-to-content link

Layout: unified · split

theme/static/styles.css +9
@@ -37,6 +37,15 @@ h1,h2,h3,h4,h5,h6 {
3737 text-transform: uppercase;
3838}
3939
40.skip-link {
41 position: absolute;
42 left: -999px;
43 top: auto;
44 width: 1px;
45 height: 1px;
46 overflow: hidden;
47}
48
4049nav {
4150 align-items: center;
4251 display: flex;
theme/templates/base.html +2 −1
@@ -17,6 +17,7 @@
1717 {% endblock %}
1818</head>
1919<body>
20 <a href="#main" class="skip-link">Skip to content</a>
2021 <nav aria-label="site-nav" role="navigation">
2122 <ul>
2223 <li><a href="/">/home</a></li>
@@ -25,7 +26,7 @@
2526 <li><a href="/services/">/services</a></li>
2627 </ul>
2728 </nav>
28 <main>{% block main %}{% endblock %}</main>
29 <main id="main">{% block main %}{% endblock %}</main>
2930 <footer>
3031 <a href="https://stats.uptimerobot.com/OwOWs7HU0z">status</a> &middot;
3132 <a href="https://git.cleberg.net/cleberg.net.git" target="_blank"