Skip to content
This repository has been archived by the owner on Nov 19, 2021. It is now read-only.

Not compatible with Ghost 1.x #1

Open
Macrofig opened this issue Nov 14, 2017 · 0 comments
Open

Not compatible with Ghost 1.x #1

Macrofig opened this issue Nov 14, 2017 · 0 comments

Comments

@Macrofig
Copy link

Trying to create a site using Ghost 1.17.2 and getting errors:
image

Fatal Errors
(Must-fix to activate theme)
Replace the {{image}} helper with {{img_url feature_image}} or {{img_url profile_image}}
The {{image}} helper was replaced with {{img_url}}.
Depending on the context of the {{img_url}} helper you would need to use e. g. 

{{#post}}
    {{img_url feature_image}}
{{/post}}

to render the feature image of the blog post.
Find more information about the {{img_url}} helper here and read more about Ghost's usage of contexts here.
Affected files:
author.hbs: Please remove or replace {{image}} from this template
partials/post-single.hbs: Please remove or replace {{image}} from this template
Replace the {{#if image}} helper with {{#if feature_image}}, or {{#if profile_image}}
The image attribute was replaced with feature_image and profile_image.
Depending on the context you will need to replace it like this:

{{#author}}
    {{#if profile_image}}
        {{profile_image}}
    {{/if}}
{{/author}}

See the object attributes of author here.

{{#post}}
    {{#if feature_image}}
        {{feature_image}}
    {{/if}}
{{/post}}

See the object attributes of post here.

{{#tag}}
    {{#if feature_image}}
        {{feature_image}}
    {{/if}}
{{/tag}}

See the object attributes of tags here.
Affected files:
partials/post-single.hbs: Please remove or replace {{#if image}} from this template
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant