Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/cloudflare-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 '<!--email_off-->' dist/lacuna/index.html
grep -Fq '<!--email_off-->' 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 '<form' dist/lacuna --include='*.html'; then echo 'form on a Lacuna page'; exit 1; fi
Expand Down
4 changes: 4 additions & 0 deletions lacuna/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@
<meta name="twitter:description" content="An atlas of places where the historical record goes quiet. Turn back the clock 25,000 years and see the Earth as it was.">
<meta name="twitter:image" content="https://syberlabs.io/lacuna/share/lacuna.jpg">
<link rel="canonical" href="https://syberlabs.io/lacuna/">
<!--email_off-->
<script type="application/ld+json">
{"@context":"https://schema.org","@type":"ResearchOrganization","@id":"https://syberlabs.io/lacuna/#org","name":"Lacuna Institute","url":"https://syberlabs.io/lacuna/","email":"contact@lacunainstitute.org","parentOrganization":{"@type":"Organization","@id":"https://syberlabs.io/#org","name":"SyberLabs","url":"https://syberlabs.io/"}}
</script>
<!--/email_off-->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=IBM+Plex+Mono:wght@400;500&family=Marcellus&display=swap" rel="stylesheet">
Expand Down Expand Up @@ -288,6 +290,7 @@
</style>
</head>
<body>
<!--email_off-->
<div id="app">
<canvas id="stage" role="img" aria-label="Globe showing twenty-one research sites. Use the index to open each one."></canvas>
<div class="vignette" aria-hidden="true"></div>
Expand Down Expand Up @@ -1560,5 +1563,6 @@ <h2 id="ptitle" tabindex="-1"></h2>
if (fromHash) setTimeout(() => select(fromHash, false), RM ? 0 : 2400);
})();
</script>
<!--/email_off-->
</body>
</html>
2 changes: 2 additions & 0 deletions lacuna/research/paracas-bundles/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
</script>
</head>
<body>
<!--email_off-->
<div class="doc">
<header class="top">
<a class="brand" href="../../">LACUNA INSTITUTE</a><span class="crumb"><a href="/">SyberLabs</a> · Research · Dataset</span>
Expand Down Expand Up @@ -257,5 +258,6 @@ <h2 id="corrections">Corrections</h2>
<span>Finding the history that fell out of the record.</span>
</footer>
</div>
<!--/email_off-->
</body>
</html>
3 changes: 3 additions & 0 deletions src/lacuna/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 6 additions & 2 deletions src/lacuna/atlas/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,11 @@ def fragment():
<meta name="twitter:description" content="An atlas of places where the historical record goes quiet. Turn back the clock 25,000 years and see the Earth as it was.">
<meta name="twitter:image" content="https://syberlabs.io/lacuna/share/lacuna.jpg">
<link rel="canonical" href="https://syberlabs.io/lacuna/">
<!--email_off-->
<script type="application/ld+json">
{"@context":"https://schema.org","@type":"ResearchOrganization","@id":"https://syberlabs.io/lacuna/#org","name":"Lacuna Institute","url":"https://syberlabs.io/lacuna/","email":"contact@lacunainstitute.org","parentOrganization":{"@type":"Organization","@id":"https://syberlabs.io/#org","name":"SyberLabs","url":"https://syberlabs.io/"}}
</script>
<!--/email_off-->
"""

def site():
Expand All @@ -64,8 +66,10 @@ def site():
keep = [l for l in head.split("\n")
if not l.startswith("<title>") 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:
Expand Down
Loading