Open
Description
Ghost API V2 will allow in the near future:
routes.yaml
routes:
/route/:
data: author.{slug}
Then you need to use {{author.slug}}
in your theme. GScan will complain about this usage.
Not 100% sure how to differentiate single author usages and this use case.
Workaround:
routes:
/route/:
data:
someone: author.{slug}
{{someone.slug}}
Copied error:
Error ID:
53f5dd40-4fa9-11e9-9df5-e9882a363da1
Details:
fatal: false
level: error
rule: Replace the <code>{{author.slug}}</code> helper with <code>{{primary_author.slug}}</code> or <code>{{authors.[#].slug}}</code>
details:
"""
The usage of <code>{{author.slug}}</code> is deprecated and should be replaced with either <code>{{primary_author.slug}}</code>
or <code>{{authors.[#].slug}}</code>.<br>
Find more information about the <code>{{authors}}</code> helper <a href="https://themes.ghost.org/docs/authors" target=_blank>here</a>.
"""
regex:
helper: {{author.slug}}
failures:
-
ref: profile.hbs
message: Please remove or replace {{author.slug}} from this template
code: GS001-DEPR-AUTH-SLUG
Related reports: