Ghost/core/test/unit
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
..
adapters 🏗 Removed reschedule method from scheduling adapter 2019-11-27 13:38:30 +05:30
api Fixed serializer unit tests 2019-11-07 12:27:02 +07:00
apps Removed subscribers from the codebase (#11153) 2019-10-09 11:47:04 +02:00
config Updated tests eslint config to use eslint-plugin-ghost@0.5.0 2019-08-19 13:38:35 +01:00
data Merge branch 'mega' 2019-11-27 12:12:27 +00:00
helpers Added fallback to excerpt in {{excerpt}} helper for gated content (#11430) 2019-12-03 11:32:46 +07:00
lib Merge branch 'master' into v3 2019-10-11 11:31:31 +01:00
models Fixed settings tests 2019-11-14 11:32:34 +05:30
services 🐛 Ensure deprecated labs flags are unset 2019-11-06 14:42:39 +07:00
web 🐛 Fixed 404s when using a proxy setup (#11269) 2019-10-28 11:22:05 +00:00