From 6b149121cdc403c902ef31a0adb0eab90b486362 Mon Sep 17 00:00:00 2001 From: tannevaled Date: Wed, 11 Nov 2026 09:51:44 +0100 Subject: [PATCH 1/2] landing: hero buttons from landingkit v0.21.0's cta.html The hero's hand-written button row is replaced by the kit's cta.html, fed by [[params.cta]] in hugo.toml. The Playground button becomes the kit's red btn-try with the browser icon (#83 had made it a second primary), and btn-try-style.html is added to the . The footer and the hero sub-text no longer repeat "BSD-3-Clause", "CGO_ENABLED=0" and "Pure Go" when the mantra strip already says them. CI runs `landingkit check public` after the Hugo build. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 7 +++++++ go.mod | 4 ++-- go.sum | 4 ++-- hugo.toml | 10 ++++++++++ layouts/index.html | 10 ++++------ 5 files changed, 25 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b825e03..d20b21f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,6 +25,13 @@ jobs: hugo-version: "0.169.0" extended: true - run: hugo --minify + # The kit's own check on the built page: the hero's button row must be the + # kit's cta.html (docs primary, try red, in the kit's order), and nothing + # the mantra strip says may be repeated beside it. + - name: landingkit check + env: + GOWORK: "off" + run: go run github.com/go-fleettools/landingkit/cmd/landingkit check public # A page that builds and says nothing is a page nobody notices is empty. - name: every repository is on it run: | diff --git a/go.mod b/go.mod index 163da6b..11c1f58 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,5 @@ module github.com/go-ndarray/go-ndarray.github.io -go 1.27.3 +go 1.27.4 -require github.com/go-fleettools/landingkit v0.20.0 +require github.com/go-fleettools/landingkit v0.21.0 diff --git a/go.sum b/go.sum index 8c8b6ee..d7a658b 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +1,2 @@ -github.com/go-fleettools/landingkit v0.20.0 h1:gX+9LvgfxD1LW6igdQD05DegqIIkvDO5QSotCAPgj3Q= -github.com/go-fleettools/landingkit v0.20.0/go.mod h1:gBpbziqFcmcjtNknPjy5+AAzGZ5L+pPr9mIJZHpDlZc= +github.com/go-fleettools/landingkit v0.21.0 h1:fcg3aS5pTvzzR+ht/LcKY7SXeFW+6PMYvB7TODmzL1c= +github.com/go-fleettools/landingkit v0.21.0/go.mod h1:jSXTO7FVKNXCK1aJjLq7H7x8d8wxDoXe3ncXWGcAKRE= diff --git a/hugo.toml b/hugo.toml index 3e74ebb..3714f19 100644 --- a/hugo.toml +++ b/hugo.toml @@ -24,6 +24,16 @@ disableKinds = ['taxonomy', 'term', 'rss', 'sitemap', '404'] [params] description = "go-ndarray is a pure-Go (CGO=0) NumPy-style n-dimensional array library in 13 dtypes — slicing/views, broadcasting, ufuncs, reductions, numpy.linalg, numpy.fft and numpy.random (NumPy's numbers for the same seed), multicore + SIMD on amd64, arm64, ppc64le, loong64, riscv64 and s390x, with a Workspace arena for loops." +# The hero's buttons: rendered by the kit's cta.html, in the kit's order. +[[params.cta]] + kind = "docs" + href = "https://go-ndarray.github.io/docs/" + label = "Read the documentation →" +[[params.cta]] + kind = "try" + href = "/playground/" + label = "Try it in your browser" + [[params.repos]] name = "ndarray" kind = "library · v0.38.1" diff --git a/layouts/index.html b/layouts/index.html index 83052ab..d32be7d 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -7,6 +7,7 @@ {{ partial "styles.html" . }} +{{ partial "btn-try-style.html" . }}