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 @@
62<a class="mark" href="{{ root }}index.html">Christian Cleberg</a> 62<a class="mark" href="{{ root }}index.html">Christian Cleberg</a>
63<nav aria-label="Site Navigation"> 63<nav aria-label="Site Navigation">
64<ul> 64<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. #}
65{%- for item in nav %} 67{%- 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 %}
66<li><a href="{{ item.url }}">{{ item.title | capitalize }}</a></li> 71<li><a href="{{ item.url }}">{{ item.title | capitalize }}</a></li>
72{%- endif %}
67{%- endfor %} 73{%- endfor %}
68</ul> 74</ul>
69</nav> 75</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
26header.site .mark { color: var(--fg); font-weight: 650; text-decoration: none; } 26header.site .mark { color: var(--fg); font-weight: 650; text-decoration: none; }
27header.site ul, footer.site ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; } 27header.site ul, footer.site ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
28header.site nav a { color: var(--soft); text-decoration: none; } 28header.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; }
30footer.site { border-top: 1px solid var(--rule); margin-top: clamp(3rem, 7vw, 5rem); padding-bottom: 3rem; color: var(--soft); font-size: .95rem; } 31footer.site { border-top: 1px solid var(--rule); margin-top: clamp(3rem, 7vw, 5rem); padding-bottom: 3rem; color: var(--soft); font-size: .95rem; }
31footer.site a { color: var(--soft); } 32footer.site a { color: var(--soft); }
32footer.site a:hover { color: var(--fg); } 33footer.site a:hover { color: var(--fg); }