Ghost/test/regression/api/canary/content
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
..
authors_spec.js Updated Content API resource ordering to be same as slugs in filter 2020-07-10 18:33:00 +12:00
pages_spec.js Updated Content API resource ordering to be same as slugs in filter 2020-07-10 18:33:00 +12:00
posts_spec.js Added paywall card to mark end of free content preview (#12663) 2021-02-17 23:00:26 +00:00
tags_spec.js Fixed regression tests for Tags APIs 2020-08-31 21:09:12 +12:00
utils.js 🏗 Altered slug unique constraint in posts table 2021-02-09 13:31:12 +13:00