Skip to content

blog-post: emit the CrawlProof tracker and sponsored bar in new posts - #7

Merged
ralyodio merged 2 commits into
masterfrom
blog-post-crawlproof-tracker
Aug 19, 2026
Merged

blog-post: emit the CrawlProof tracker and sponsored bar in new posts#7
ralyodio merged 2 commits into
masterfrom
blog-post-crawlproof-tracker

Conversation

@ralyodio

@ralyodio ralyodio commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Every page under /blog/** now carries two CrawlProof tags. The 19 existing posts and index.html were updated in place on the live blog and mirrored to ralyodio/blog@32878a9; this teaches blog-post new to emit them too, so a new post doesn't silently drop out of the numbers or run without the ad.

  • TRACKER — the cookieless pageview tag (site 099436d8).
  • AD_UNIT — the text_link sponsored bar (slot 50ba73a3) plus ad.js.

Both render last thing before </body>, after </article>, so nothing on the page waits on a third-party host. A test asserts the placement, and that the format is text_link and not a banner.

Why text_link. It is a 40px full-width strip that carries its own "Sponsored" mark inside the frame, so ad.js prepends no extra Advertisement caption, and an unsold or blocked slot collapses to 0px instead of leaving a banner-shaped hole. Verified rendering at 1184x40 on the live blog.

Two things worth knowing:

  1. This breaks smolweb validity, which forbids scripts served from another host. The pages stay fully readable with JavaScript off, which is the half of that rule that matters to a reader — but smolweb.org/validator will now flag every post. Noted in the renderPost docblock so the next person doesn't "fix" it.
  2. Kagi Small Web's listing rules bar advertisements, and this blog is in that index. The sponsored bar may put the listing at risk.

🤖 Generated with Claude Code

Every page under /blog/** now carries CrawlProof's cookieless pageview
tag, so the template has to as well or each new post silently drops out
of the numbers.

The tag is the one deliberate break from smolweb validity, which forbids
scripts from another host. It goes last before </body>, and nothing on
the page depends on it — the post reads identically with JavaScript off.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Aug 19, 2026

Copy link
Copy Markdown

ThreatCrush Security Scan

2 finding(s)

LOW: 2

Severity Rule Location
LOW insecure-temp-file test/blog.test.ts:58
LOW insecure-temp-file test/blog.test.ts:59

Snippets are redacted; ThreatCrush never prints matched credential material.

New posts get the CrawlProof text_link unit (slot 50ba73a3) alongside the
tracker, matching the block now on all 20 live pages byte for byte.

text_link rather than a banner: it is a 40px full-width strip carrying
its own Sponsored mark, so ad.js adds no caption, and an unsold slot
collapses to nothing rather than leaving a banner-shaped hole.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@ralyodio ralyodio changed the title blog-post: emit the CrawlProof tracker in new posts blog-post: emit the CrawlProof tracker and sponsored bar in new posts Aug 19, 2026
@ralyodio
ralyodio merged commit 5c2d718 into master Aug 19, 2026
4 checks passed
@ralyodio
ralyodio deleted the blog-post-crawlproof-tracker branch August 19, 2026 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant