Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Added paywall card to mark end of free content preview #12663

Merged
merged 10 commits into from Feb 17, 2021

Conversation

kevinansfield
Copy link
Contributor

@kevinansfield kevinansfield commented Feb 17, 2021

closes https://github.com/TryGhost/Team/issues/466

  • upgraded kg-default-cards to include paywall card
  • extracted htmlToPlaintext from post model to shared util for re-use
  • updated post-gating to set html+plaintext to the free preview if a paywall card has been used
    • re-generates plaintext from the truncated html using htmlToPlaintext util
  • display free content above default CTA in {{content}} helper

@kevinansfield kevinansfield marked this pull request as ready for review February 17, 2021 22:26
@kevinansfield kevinansfield merged commit 2c96df4 into TryGhost:main Feb 17, 2021
@kevinansfield kevinansfield deleted the paywall-card branch February 17, 2021 23:00
dmitrymarokhonov pushed a commit to dmitrymarokhonov/Ghost that referenced this pull request Feb 28, 2021
)

closes https://github.com/TryGhost/Team/issues/466

- upgraded kg-default-cards to include paywall card
- extracted `htmlToPlaintext` from post model to shared util for re-use
- updated post-gating to set html+plaintext to the free preview if a paywall card has been used
  - re-generates plaintext from the truncated html using `htmlToPlaintext` util
- display free content in the `{{content}}` helper via the default CTA template
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.

None yet

1 participant