Add pit.world global footer, trim site footer

Fetch https://pit.world/snippets/footer.html?site=logicsrc.com server-side
(1h revalidate, 3s timeout, renders nothing on failure) as the last thing
in <body>. Replace the @profullstack/footer block (links row + webring row
+ copyright) with one row: copyright and the needed links. The network and
ring links now come from the global footer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Anthony Ettinger 2026-10-19 12:38:26 +00:00
parent cc59884c82
commit f5e81bb79c
6 changed files with 57 additions and 33 deletions

View file

@ -92,14 +92,12 @@ describe("server-rendered page markup", () => {
expect(markup).toContain('id="project-request-form"');
});
it("carries the Profullstack webring links (the ring verifier reads the homepage)", async () => {
process.env.PROFULLSTACK_FOOTER_OFFLINE = "1";
it("carries the site footer (links + copyright), with no webring of its own", async () => {
const markup = renderPageMarkup("/", await siteFooterHtml());
expect(markup).toContain("data-pfs-footer");
const from = "from=https%3A%2F%2Flogicsrc.com%2F";
for (const hop of ["previous", "next", "random"]) {
expect(markup).toContain(`https://rssamplifier.com/ring/profullstack/${hop}?${from}`);
}
expect(markup).toContain('class="site-footer"');
expect(markup).toContain('href="/terms"');
expect(markup).toContain('href="/privacy"');
expect(markup).not.toContain("rssamplifier.com/ring");
});
});