0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/frontend
Kevin Ansfield 2c96df42ac
Added paywall card to mark end of free content preview (#12663)
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
2021-02-17 23:00:26 +00:00
..
apps 💡 Renamed the cookie used for the private mode 2021-02-02 16:12:10 +00:00
helpers Added paywall card to mark end of free content preview (#12663) 2021-02-17 23:00:26 +00:00
meta Updated twitter/og structured data rules 2021-02-05 18:50:11 +13:00
services Added theme preview mode 2021-02-17 13:49:41 +00:00
views Updated unsubscribe copy 2019-11-26 11:03:14 +01:00