This post is free — non-subscribers can read this intro freely.
Two ways to gate content
There are two paywall mechanisms in this blog:
- Full-post gate — set
premium: truein frontmatter. The whole post body is replaced by a paywall block for non-subscribers. - Partial gate — wrap any MDX section in
<Premium>...</Premium>. Just that section is locked; the rest stays free.
Below is an example of the partial gate in action.
Free intro: the setup
You can read this paragraph regardless of whether you’re a subscriber. The context is free; the deep solution is locked.
Free conclusion
This paragraph is free again. The <Premium> tag closed above, so we’re
back outside the gate.
Cheat sheet
premium: true→ entire post locked<Premium>...</Premium>→ just that section locked- Both mechanisms read the same Polar.sh subscription state, so a single subscription unlocks everything.
What did you think?
Sign in to react.