0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00
ghost/test/unit/helpers
Rish 1272968848 Updated {{content}} helper partial template name
no issue
refs e3a0bb535f

Previously, {{content}} helper was updated use default or custom template to show a CTA when trying to use helper without access to content.

While the change was expected to not affect any existing themes as `{{content}}` helper is not supposed to be used on member sites without `access` check, we found quite a few themes use a pattern of using `content.hbs` with `{{content}}` helper inside them as default, which causes infinite loop in how content helper works in certain cases.

Whilst this followed the pattern of the other helpers using a partial with the same name, there are 2 key differences:

- this partial template pattern is being introduced way after the inception of themes with a fairly generic name “content”
- this partial template isn’t used to render the helper all the time - just the CTA part under certain circumstances.

This change updates the template name to `content-cta.hbs` to which makes it less likely to clash, and makes more sense as to what it is.
2021-02-09 13:59:52 +05:30
..
test_tpl Updated {{content}} helper partial template name 2021-02-09 13:59:52 +05:30
asset_spec.js
author_spec.js
authors_spec.js
body_class_spec.js
cancel_link_spec.js
concat_spec.js
content_spec.js Updated {{content}} helper partial template name 2021-02-09 13:59:52 +05:30
date_spec.js
encode_spec.js
excerpt_spec.js
facebook_url_spec.js
foreach_spec.js Fixed "no-shadow" eslint warning in tests 2020-10-19 17:45:26 +13:00
get_spec.js
ghost_foot_spec.js Updated tests that were stubbing old ghost_head/ghost_foot settings keys 2020-07-01 17:58:12 +01:00
ghost_head_spec.js Updated twitter/og structured data rules 2021-02-05 18:50:11 +13:00
has_spec.js Fixed "no-shadow" eslint warning in tests 2020-10-19 17:45:26 +13:00
img_url_spec.js
is_spec.js
lang_spec.js
link_class_spec.js
link_spec.js
meta_description_spec.js
meta_title_spec.js
navigation_spec.js
next_post_spec.js Migrate the default api version from v2 to v3 2021-02-03 15:02:51 +01:00
page_url_spec.js
pagination_spec.js Updated links to ghost.org sites 2021-01-20 09:59:45 +13:00
plural_spec.js
post_class_spec.js
prev_post_spec.js Migrate the default api version from v2 to v3 2021-02-03 15:02:51 +01:00
price_spec.js
raw_spec.js
reading_time_spec.js
t_spec.js 🐛 Fixed incorrect locale loading when changing themes 2021-01-04 17:26:22 +13:00
tags_spec.js
title_spec.js
twitter_url_spec.js
url_spec.js Fixed "no-shadow" eslint warning in tests 2020-10-19 17:45:26 +13:00