From 465246240f16438961ce7bbe83fe4f8b49b1d4a1 Mon Sep 17 00:00:00 2001 From: tannevaled Date: Sat, 14 Nov 2026 08:42:14 +0100 Subject: [PATCH] landing: landingkit v0.26.0, kit-rendered hero buttons, goarch strip, kit check in CI - landingkit v0.20.0 -> v0.26.0, go 1.27.4 - hero row from [[params.cta]] + cta.html - [params.mantra] goarch = amd64: the engine's test lanes run on ubuntu-latest; the six-architecture job only cross-builds, so the hero pill that listed six architectures is removed (it claimed what CI does not run) - CI runs `landingkit check public` after the Hugo build Co-Authored-By: Claude Sonnet 5.5 --- .github/workflows/hugo.yml | 7 +++++++ go.mod | 4 ++-- go.sum | 2 ++ hugo.toml | 16 ++++++++++++++++ layouts/index.html | 8 +++----- 5 files changed, 30 insertions(+), 7 deletions(-) diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml index 1ef91f2..90428f1 100644 --- a/.github/workflows/hugo.yml +++ b/.github/workflows/hugo.yml @@ -69,6 +69,13 @@ jobs: --minify \ --baseURL "${{ steps.pages.outputs.base_url }}/" + # The landing kit's own rules, read from the BUILT site (a hand-written + # cta row, a playground link that is not btn-try, a fact said twice). + - name: Check the landing against the kit + env: + GOWORK: "off" + run: go run github.com/go-fleettools/landingkit/cmd/landingkit check public + - name: Upload artifact uses: actions/upload-pages-artifact@v5 with: diff --git a/go.mod b/go.mod index 465ef9d..9625cdf 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,5 @@ module github.com/go-webengine/go-webengine.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.26.0 diff --git a/go.sum b/go.sum index 8c8b6ee..465168d 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +1,4 @@ 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.26.0 h1:X5H3KbnruK9NdK4m2zhUrBFh1Tq4ySnVNUVNNwhrSZk= +github.com/go-fleettools/landingkit v0.26.0/go.mod h1:jSXTO7FVKNXCK1aJjLq7H7x8d8wxDoXe3ncXWGcAKRE= diff --git a/hugo.toml b/hugo.toml index 2c4ac52..e9cb5dd 100644 --- a/hugo.toml +++ b/hugo.toml @@ -10,6 +10,22 @@ disableKinds = ["taxonomy", "term", "RSS", "sitemap", "404"] [markup.goldmark.renderer] unsafe = true +# The architectures the tests RUN on (engine ci.yml: the test lanes run on +# ubuntu-latest, amd64; its six-architecture job only cross-builds, and the +# suite is not run under qemu because the rendering needs real fonts). +[params.mantra] + goarch = ["amd64"] + +# The hero's buttons, rendered by landingkit's cta.html in the kit's order. +[[params.cta]] + kind = "docs" + href = "https://go-webengine.github.io/docs/" + label = "Documentation" +[[params.cta]] + kind = "github" + href = "https://github.com/go-webengine/engine" + label = "GitHub" + # Code repositories in the org. `type` = lib / cli / infra. [[params.repos]] name = "engine" diff --git a/layouts/index.html b/layouts/index.html index 0045e68..eac6dfa 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -50,11 +50,9 @@

go-webengine

A pure-Go, headless web engine — give it a URL, get back an image of the page. HTML/CSS layout and paint with no Chromium and no cgo.

- -
{{ if not (partial "mantra-on.html" $) }}CGO_ENABLED=0{{ end }}no Chromium · no host web viewJavaScript (goja) + real DOMflex · grid · tables · positiongradients · box-shadow · SVGamd64 · arm64 · riscv64 · loong64 · ppc64le · s390xratchet coverage gatemeasured vs headless Chrome
+ {{/* [[params.cta]] in hugo.toml: the kit renders the row */}} + {{ partial "cta.html" . }} +
{{ if not (partial "mantra-on.html" $) }}CGO_ENABLED=0{{ end }}no Chromium · no host web viewJavaScript (goja) + real DOMflex · grid · tables · positiongradients · box-shadow · SVGratchet coverage gatemeasured vs headless Chrome
{{ partial "hero-carousel.html" . }}