0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/frontend/helpers
Hannah Wolfe ba587ba882
Fixed logic bugs in match helper (#13315)
closes: CORE-33

Two bugs:
- lodash isEmpty and handlebars util isEmpty are not the same
- I literally had the truthy and falsy cases the wrong way around 🙈

Notes:
- I have, for now, copied the isEmpty util from handlebars. It's so small it doesn't seem worth trying to require the util right now, although in future it'd be nice if that was easier to do
- Adding the management for the conditional being a SafeString allows the match helper to be a subexpression of itself, I can see this pattern being useful later in combo with the any and all helpers
2021-09-17 09:47:10 +01:00
..
tpl Added beta {{products}} helper for tiers list on post (#13267) 2021-09-10 09:30:41 +05:30
asset.js
author.js Swapped _.escape for proxy.escapeExpression 2021-06-04 20:07:44 +01:00
authors.js Swapped _.escape for proxy.escapeExpression 2021-06-04 20:07:44 +01:00
body_class.js
cancel_link.js Updated links to ghost.org sites 2021-01-20 09:59:45 +13:00
concat.js
content.js Removed hardcoded accent color fallbacks (#12813) 2021-03-24 18:25:26 +05:30
date.js Improved theme locale handling 2021-05-05 16:13:26 +01:00
encode.js
excerpt.js
facebook_url.js
foreach.js Updated default visibility in foreach for posts to all 2021-03-02 15:44:19 +05:30
get.js Fixed feature_image_caption needing triple-curlies in themes (#13107) 2021-07-01 17:55:44 +01:00
ghost_foot.js
ghost_head.js Added crossorigin attribute to Portal script 2021-06-22 12:31:30 +05:30
has.js
img_url.js
index.js
is.js
lang.js Improved theme locale handling 2021-05-05 16:13:26 +01:00
link.js
link_class.js 🐛 Fixed 404 errors if navigation URLs are somehow blank 2021-03-24 09:43:43 +00:00
match.js Fixed logic bugs in match helper (#13315) 2021-09-17 09:47:10 +01:00
meta_description.js
meta_title.js
navigation.js
page_url.js
pagination.js Updated links to ghost.org sites 2021-01-20 09:59:45 +13:00
plural.js
post_class.js
prev_post.js Improved single author deprecated notices 2021-05-04 17:11:12 +01:00
price.js Fixed 0 amount in new price helper 2021-02-25 20:08:54 +05:30
products.js Added beta {{products}} helper for tiers list on post (#13267) 2021-09-10 09:30:41 +05:30
raw.js
reading_time.js
t.js
tags.js Swapped _.escape for proxy.escapeExpression 2021-06-04 20:07:44 +01:00
title.js
twitter_url.js
url.js