From ffa6ee1310971fd0c76644e5da13ca5dd566e1b8 Mon Sep 17 00:00:00 2001 From: tannevaled Date: Thu, 8 Oct 2026 09:50:52 +0200 Subject: [PATCH] Icons on the buttons, saying what each one does Every button now carries an Octicons glyph chosen by what it does: GitHub's mark for GitHub, a book for documentation and references, a rocket for getting started, a graph for benchmarks, a package for modules, a globe for a live demo, and an external-link arrow otherwise. The glyphs come from primer/octicons @primer/octicons-react@19.40.0, copied verbatim and not redrawn. Their MIT licence travels in layouts/partials/icons/OCTICONS-LICENSE. They are drawn in currentColor, so they follow the button in light and dark, and they are aria-hidden, since the text already says where each button leads. One CSS rule beside .btn aligns them. Co-Authored-By: Claude Opus 5.5 (1M context) --- layouts/index.html | 2 +- layouts/partials/icons/book.html | 5 +++++ layouts/partials/styles.html | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 layouts/partials/icons/book.html diff --git a/layouts/index.html b/layouts/index.html index 7809021..53ae3c9 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -21,7 +21,7 @@

NumPy-style n-dimensional arrays in pure Go.
float64, multicore + SIMD.

go-ndarray is the numpy equivalent for Go: a float64 n-dimensional array with creation routines, strided views that share data, broadcasting elementwise ops and ufuncs, reductions (incl. arg / cumulative / clip / where), manipulation, and linear algebra (a panel-packed, cache-blocked GEMM) — all in pure Go, with cgo disabled.

{{ len .Site.Params.families }} API families, NumPy's names5 SIMD targetsCGO=0 no BLAS shim
diff --git a/layouts/partials/icons/book.html b/layouts/partials/icons/book.html new file mode 100644 index 0000000..cf1e882 --- /dev/null +++ b/layouts/partials/icons/book.html @@ -0,0 +1,5 @@ +{{- /* Octicons "book" (16 px), primer/octicons @primer/octicons-react@19.40.0, copied verbatim, MIT, + (c) GitHub Inc.: the licence is OCTICONS-LICENSE beside this file. + currentColor follows the button in light and dark; aria-hidden, since + the button's text already says where it leads. */ -}} + \ No newline at end of file diff --git a/layouts/partials/styles.html b/layouts/partials/styles.html index d50c2a8..3499b6a 100644 --- a/layouts/partials/styles.html +++ b/layouts/partials/styles.html @@ -104,6 +104,7 @@ .theme-toggle:hover{border-color:var(--ghost-border-hover)} .btn{display:inline-flex;align-items:center;gap:8px;font-weight:700;font-size:14px;padding:11px 18px; border-radius:12px;border:1px solid transparent;transition:.15s} + .btn .icon{flex:none} {{/* ⛔ `.btn.btn-primary`, not `.btn-primary`. Further down this file sits `.lm a{color:inherit}`, and `.lm a` is a class AND an element -- (0,1,1) -- which BEATS a single class. So the primary button, which is an ,