-
-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GScan will complain about {{author}}
usage when passed as data property from routes.yaml
#170
Comments
@kirrg001 after investigating this bug and looking into how gscan handles checks internally have following thoughts:
The most straight forward solution would be just removing these rules. But seems like a bad idea because when there's no custom route defined with A better solution I think would be redefining these rules as An ideal solution would be somehow checking As a sidenote around gscan error detection for specific versions. We are only checking |
This is potentially something using the handlebars AST could help with. If we see usage of |
@kevinansfield yes, having the context narrowed down to post/page would be the best option. In this case, we could set this bug to be an example use-case that should be solved with AST 👍 |
Ghost API V2 will allow in the near future:
routes.yaml
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:
{{someone.slug}}
Copied error:
Related reports:
The text was updated successfully, but these errors were encountered: