mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-12-01 17:24:48 +00:00
Add pit.world global footer, trim site footer (#246)
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:
parent
cc59884c82
commit
c8da4cb4ab
6 changed files with 57 additions and 33 deletions
|
|
@ -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");
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue