Add a newsletter subscribe block, off until a publication exists - #9
Open
tishachawla-jg wants to merge 1 commit into
Open
Add a newsletter subscribe block, off until a publication exists#9tishachawla-jg wants to merge 1 commit into
tishachawla-jg wants to merge 1 commit into
Conversation
There is no way to follow this project by email. The media page lists what we have published and offers no way to hear about the next one. js/subscribe.js renders a subscribe card into any <div data-subscribe> slot. Slots are on media.html (under the header) and about.html (in the CTA band). The publication handle is a single constant, AGENTPLANE_SUBSTACK_PUB, and it ships empty. While it is empty nothing renders and the slots stay hidden, so the site cannot ship a subscribe button pointing at a publication that does not exist. Setting it to a handle is the only change needed to turn this on. Styling reuses the existing tokens and the btn btn-solid class, so it tracks both themes with no new colours. Stacks on narrow viewports. Not wired to susheemk.substack.com on purpose: "Susheem's Jottings" is a personal, three-year-old general software engineering publication, and pointing the project's subscribe button at it would read as one founder's blog rather than an AgentPlane channel. Verified against a local server in both states. Empty handle: slot present, innerHTML empty, hidden, offsetParent null. Handle set: card renders as a flex row with the token background and border, and the CTA points at <pub>.substack.com/subscribe. Co-Authored-By: Claude Opus 5 <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.
There is no way to follow this project by email. The media page lists what we have published and offers no way to hear about the next one.
How it works
js/subscribe.jsrenders a subscribe card into any<div data-subscribe>slot. Slots are on media.html (under the header) and about.html (in the CTA band).The publication handle is a single constant and it ships empty:
While it is empty nothing renders and the slots stay
hidden, so the site cannot ship a subscribe button pointing at a publication that does not exist. Turning it on is that one line, after someone creates the publication.Verified in both states
Against a local server:
''(as shipped)innerHTMLempty,hiddenset,offsetParentnull'theagentplane'rgb(22,27,34)and border, CTA ->https://theagentplane.substack.com/subscribeStyling reuses the existing design tokens and
btn btn-solid, so it tracks both themes with no new colours, and stacks on viewports under 640px.Why not Susheem's existing Substack
susheemk.substack.comis "Susheem's Jottings", a personal three-year-old general software-engineering publication that 3 of the 8 entries indata/posts.jsonalready point at. Pointing the project's subscribe button at it would read as one founder's blog rather than an AgentPlane channel.theagentplane.substack.comandagentplane.substack.comare both currently unregistered.Remaining manual step
Creating the publication needs an account, so someone has to do it. After that, set the constant and this goes live. README badges for both repos can follow once the URL is real.
🤖 Generated with Claude Code