Ghost/core/server/api/v2/utils
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
..
serializers Added paywall card to mark end of free content preview (#12663) 2021-02-17 23:00:26 +00:00
validators Refactored usage of pre v4 "unsplash" setting format 2021-02-18 10:55:59 +13:00
index.js Added comments for Ghost API 2019-05-06 14:49:25 +02:00
permissions.js Refactored common lib import to use destructuring (#11835) 2020-05-22 19:22:20 +01:00