From 0ebd066754f9607b775000e68d95f95ba639af88 Mon Sep 17 00:00:00 2001 From: tannevaled Date: Sun, 4 Oct 2026 11:09:16 +0200 Subject: [PATCH] Add the GitHub mark to the navbar GitHub link The navbar's GitHub link was text only. It now carries the GitHub mark in front of its label: the Octicons "mark-github" 16px icon from @primer/octicons v19.38.0 (MIT, GitHub Inc.), path copied verbatim from build/svg/mark-github-16.svg. The SVG is sized to 1em, fills with currentColor so it follows the link colour in light, dark and hover states, and is aria-hidden; the link keeps "GitHub" as its accessible name. Co-Authored-By: Claude Opus 5.5 --- layouts/partials/nav.html | 4 +++- static/css/main.css | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index 92ad764..f5f668c 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -3,7 +3,9 @@
{{ .Site.Params.brand }}
{{ range .Site.Menus.main }}{{ .Name }}{{ end }} - GitHub + {{- /* GitHub mark: Octicons "mark-github" (16px), @primer/octicons v19.38.0, + build/svg/mark-github-16.svg, MIT License (c) GitHub Inc. Path copied verbatim. */}} + GitHub diff --git a/static/css/main.css b/static/css/main.css index 5aef491..d182516 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -162,6 +162,8 @@ nav .brand { font-weight: 600; letter-spacing: -0.01em; color: var(--accent); di nav .brand-logo { width: 28px; height: 28px; border-radius: 7px; vertical-align: middle; } nav a { color: var(--muted); text-decoration: none; margin-left: 1.25rem; } nav a:hover { color: var(--fg); } +nav .nav-github { display: inline-flex; align-items: center; gap: 0.4em; } +nav .nav-icon { width: 1em; height: 1em; flex: none; } /* ---------- HERO ---------- */ .hero {