0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/frontend/helpers
Rish 2ef5fb8380 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 14:05:49 +05:30
..
tpl Updated {{content}} helper partial template name 2021-02-09 14:05:49 +05:30
asset.js
author.js
authors.js Fixed "no-shadow" linting error in server modules (#12287) 2020-10-20 12:02:56 +13: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 Updated {{content}} helper partial template name 2021-02-09 14:05:49 +05:30
date.js
encode.js
excerpt.js
facebook_url.js
foreach.js Fixed "no-shadow" linting error in server modules (#12287) 2020-10-20 12:02:56 +13:00
get.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
ghost_foot.js Updated ghost_head & ghost_foot to work with tags 2020-07-10 14:20:24 +02:00
ghost_head.js Bumped Portal to v0.15.0 2021-01-15 19:56:04 +05:30
has.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
img_url.js
index.js
is.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
lang.js
link.js
link_class.js
meta_description.js
meta_title.js
navigation.js Fixed "no-shadow" linting error in server modules (#12287) 2020-10-20 12:02:56 +13:00
page_url.js
pagination.js Updated links to ghost.org sites 2021-01-20 09:59:45 +13:00
plural.js
post_class.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
prev_post.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
price.js
raw.js
reading_time.js
t.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
tags.js Fixed "no-shadow" linting error in server modules (#12287) 2020-10-20 12:02:56 +13:00
title.js
twitter_url.js
url.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00