Ghost/core/frontend
Naz Gargol 2e28bc2a5f
Added fallback to excerpt in {{excerpt}} helper for gated content (#11430)
refs https://github.com/TryGhost/Ghost/issues/10062

- When content gating is in place a lot of times both `html` and `custom_excerpt` fields on posts/pages are empty and the output of `{{excerpt}}` helper is also empty. We do return an `excerpt` property as a part of post resource which can serve as a safe fallback for when the above fields are not filled. It massively improves the experience of using the helper with gated content 
- Refactored nested ternaries to be more readable
- Added fallback to excerpt property when HTML is hidden from members
- Removed note about the review of excerpt helper
- Added test case for 'excerpt' property
2019-12-03 11:32:46 +07:00
..
apps Removed subscribers from the codebase (#11153) 2019-10-09 11:47:04 +02:00
helpers Added fallback to excerpt in {{excerpt}} helper for gated content (#11430) 2019-12-03 11:32:46 +07:00
meta Updated meta/structured data sources & fallbacks (#11068) 2019-11-21 13:08:00 +00:00
services Merge branch 'mega' 2019-11-27 12:12:27 +00:00
views Updated unsubscribe copy 2019-11-26 11:03:14 +01:00