From dcb853360efad15212a9f9021196e27e6bd86bda Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 16 Nov 2026 21:53:59 -0800 Subject: [PATCH] Lacuna pages: serve the contact address as written Cloudflare rewrites email addresses in served HTML and decodes them with a script. The site's contact pages opt out with email_off comments; the Lacuna pages now do the same, so contact@lacunainstitute.org is in the page source for readers without script, archives and structured data. - Atlas: email_off around the body and the structured data (build.py) - Dataset page: email_off around the document - CI checks both pages keep the comments - src/lacuna/README.md: both redirect rules are in place since 2026-11-16 Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_01VHrJ4hF9F7rPZoYPicN6fE --- .github/workflows/cloudflare-pages.yml | 3 +++ lacuna/index.html | 4 ++++ lacuna/research/paracas-bundles/index.html | 2 ++ src/lacuna/README.md | 3 +++ src/lacuna/atlas/build.py | 8 ++++++-- 5 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cloudflare-pages.yml b/.github/workflows/cloudflare-pages.yml index ec849cb..9f2ccc3 100644 --- a/.github/workflows/cloudflare-pages.yml +++ b/.github/workflows/cloudflare-pages.yml @@ -157,6 +157,9 @@ jobs: test -s dist/lacuna/data/paracas-exported-bundles-v1.0.csv grep -Fq 'Part of SyberLabs' dist/lacuna/index.html grep -Fq 'Part of SyberLabs' dist/lacuna/research/paracas-bundles/index.html + # Lacuna's address stays as written: Cloudflare rewrites email addresses outside these comments. + grep -Fq '' dist/lacuna/index.html + grep -Fq '' dist/lacuna/research/paracas-bundles/index.html grep -Fq 'href="/lacuna/"' dist/index.html # /privacy/ tells visitors the site has no forms: Lacuna's "Get new findings" is an email link. if grep -rqi ' + + @@ -288,6 +290,7 @@ +
@@ -1560,5 +1563,6 @@

if (fromHash) setTimeout(() => select(fromHash, false), RM ? 0 : 2400); })(); + diff --git a/lacuna/research/paracas-bundles/index.html b/lacuna/research/paracas-bundles/index.html index aaddfbd..888021b 100644 --- a/lacuna/research/paracas-bundles/index.html +++ b/lacuna/research/paracas-bundles/index.html @@ -45,6 +45,7 @@ +
LACUNA INSTITUTESyberLabs · Research · Dataset @@ -257,5 +258,6 @@

Corrections

Finding the history that fell out of the record.
+ diff --git a/src/lacuna/README.md b/src/lacuna/README.md index af0eb24..9769915 100644 --- a/src/lacuna/README.md +++ b/src/lacuna/README.md @@ -20,6 +20,9 @@ Rules, a single dynamic redirect, status 301, query string preserved): | `lacunainstitute.org/*`, `www.lacunainstitute.org/*` | `concat("https://syberlabs.io/lacuna", http.request.uri.path)` | | `lacunainstitute.com/*`, `www.lacunainstitute.com/*` | `concat("https://syberlabs.io/lacuna", http.request.uri.path)` | +Both rules are in place since 2026-11-16, each named "All requests to syberlabs.io/lacuna" and set to +"All incoming requests", so every name under either domain is covered. + So `lacunainstitute.org/sites/paracas/` opens `syberlabs.io/lacuna/sites/paracas/`, and `lacunainstitute.org/#paracas` opens that site on the Atlas (browsers keep the `#` part across a redirect). The rules act on web requests only: the mail records of `lacunainstitute.org` (MX, SPF, DKIM, DMARC) are not part of them and stay as they are. diff --git a/src/lacuna/atlas/build.py b/src/lacuna/atlas/build.py index e680890..2b6d531 100644 --- a/src/lacuna/atlas/build.py +++ b/src/lacuna/atlas/build.py @@ -52,9 +52,11 @@ def fragment(): + + """ def site(): @@ -64,8 +66,10 @@ def site(): keep = [l for l in head.split("\n") if not l.startswith("") and "claude:viewport" not in l and not l.startswith('<meta name="description"')] - return (HEAD + "\n".join(keep) + "\n</head>\n<body>\n" - + body.strip("\n") + "\n</body>\n</html>\n") + # email_off: Cloudflare rewrites email addresses in served HTML unless they sit between these comments + # (the site's contact pages do the same), so the address is in the page as written. + return (HEAD + "\n".join(keep) + "\n</head>\n<body>\n<!--email_off-->\n" + + body.strip("\n") + "\n<!--/email_off-->\n</body>\n</html>\n") if __name__ == "__main__": if "--fragment" in sys.argv: