diff --git a/layouts/index.html b/layouts/index.html index eb8dec8..1325b9c 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -6,12 +6,6 @@ {{ .Site.Title }} — the whole of PDF in Go, with no C anywhere -{{/* Ask the Dark Reader extension to stand aside. This page has its own - three-way theme and its own dark palette; Dark Reader recolours it on top - of that, which inverts a page that was already dark and leaves the brand - colours somewhere neither design chose. Same mechanism our Hextra fork - uses for the documentation. */}} - {{ partial "styles.html" . }} diff --git a/layouts/partials/styles.html b/layouts/partials/styles.html index 3499b6a..97f1499 100644 --- a/layouts/partials/styles.html +++ b/layouts/partials/styles.html @@ -1,3 +1,10 @@ +{{/* This page draws its own dark theme (prefers-color-scheme and the + System/Light/Dark toggle). The Dark Reader extension otherwise repaints it + on top -- the hero's brand wash vanished under it on go-fft while the + same CSS showed on go-ndarray -- so it is told to stand down, as + go-pdfkit's page and our Hextra fork already do. This partial is + included in , so every landing on the kit gets the flag. */}} + {{/* The brand colours are the ONLY thing that differs between the orgs using this stylesheet, and they are read from [params.brand] rather than written in. Two byte-identical copies of this file already existed in go-authn and