Skip to content

Add the GitHub mark to the navbar GitHub link - #8

Merged
tannevaled merged 1 commit into
mainfrom
nav-github-mark
Oct 4, 2026
Merged

tannevaled merged 1 commit into
mainfrom
nav-github-mark

Conversation

@tannevaled

Copy link
Copy Markdown
Contributor

Summary

The navbar's GitHub link was text only. It now shows the GitHub mark before its label.

  • Icon: Octicons mark-github (16px) from @primer/octicons v19.38.0, MIT License (GitHub Inc.). The path is copied verbatim from build/svg/mark-github-16.svg and the source is cited in a template comment.
  • Sized to 1em, fill="currentColor" so it follows the link colour in light, dark and hover states.
  • aria-hidden="true" / focusable="false" on the SVG; the link keeps "GitHub" as its accessible name.

Files: layouts/partials/nav.html, static/css/main.css.

Verification

Built locally with Hugo 0.162.1 (hugo --gc --minify): the rendered index.html contains the SVG inside <a class=nav-github> with the Octicons path intact. CI builds with the pinned Hugo 0.135.0.

🤖 Generated with Claude Code

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 <noreply@anthropic.com>
@tannevaled
tannevaled merged commit b5f0c6b into main Oct 4, 2026
2 checks passed
@tannevaled
tannevaled deleted the nav-github-mark branch October 4, 2026 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant