mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 09:52:06 +03:00
2e28bc2a5f
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 |
||
---|---|---|
.. | ||
adapters | ||
api | ||
apps | ||
config | ||
data | ||
helpers | ||
lib | ||
models | ||
services | ||
web |