Commit bd6bfe92b9

bd6bfe92b913ff1932caa32d07b476255a6a217b

parent: 6bf46da2e0

Verified · cmc

cmc <hello@cleberg.net> · 2026-11-12 04:30 UTC

style(design): FINDING-001 — mark the current nav link and stop linking it to #

Layout: unified · split

content/templates/base.html +6
@@ -62,8 +62,14 @@
6262<a class="mark" href="{{ root }}index.html">Christian Cleberg</a>
6363<nav aria-label="Site Navigation">
6464<ul>
65{#- orgo gives the current page's entry the url "#"; link it to itself instead and mark
66 it, so the nav says where you are. #}
6567{%- for item in nav %}
68{%- if item.url == "#" %}
69<li><a href="{{ root }}{{ page.url }}" aria-current="page">{{ item.title | capitalize }}</a></li>
70{%- else %}
6671<li><a href="{{ item.url }}">{{ item.title | capitalize }}</a></li>
72{%- endif %}
6773{%- endfor %}
6874</ul>
6975</nav>
theme/static/styles.css +2 −1
@@ -26,7 +26,8 @@ header.site, footer.site { max-width: var(--wide); margin: 0 auto; padding: 1.5r
2626header.site .mark { color: var(--fg); font-weight: 650; text-decoration: none; }
2727header.site ul, footer.site ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
2828header.site nav a { color: var(--soft); text-decoration: none; }
29header.site nav a:hover { color: var(--fg); }
29header.site nav a:hover, header.site nav a[aria-current] { color: var(--fg); }
30header.site nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .45em; }
3031footer.site { border-top: 1px solid var(--rule); margin-top: clamp(3rem, 7vw, 5rem); padding-bottom: 3rem; color: var(--soft); font-size: .95rem; }
3132footer.site a { color: var(--soft); }
3233footer.site a:hover { color: var(--fg); }