blog-post: emit the CrawlProof tracker and sponsored bar in new posts - #7
Merged
Conversation
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>
ThreatCrush Security Scan2 finding(s) LOW: 2
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Every page under
/blog/**now carries two CrawlProof tags. The 19 existing posts andindex.htmlwere updated in place on the live blog and mirrored to ralyodio/blog@32878a9; this teachesblog-post newto 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 (site099436d8).AD_UNIT— thetext_linksponsored bar (slot50ba73a3) plusad.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 istext_linkand not a banner.Why
text_link. It is a 40px full-width strip that carries its own "Sponsored" mark inside the frame, soad.jsprepends no extraAdvertisementcaption, 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:
smolweb.org/validatorwill now flag every post. Noted in therenderPostdocblock so the next person doesn't "fix" it.🤖 Generated with Claude Code