Ghost/ghost/recommendations
Sag d24c7c5fa6
Added {{recommendations}} theme helper (#18340)
refs https://github.com/TryGhost/Product/issues/3940

- the {{recommendation}} helper fetches recommendations from the Content
API and renders a HTML template with pre-defined CSS classes
- the HTML template can be overridden in themes, by uploading a file
under partials/recommendations.hbs
- the CSS classes are not pre-defined, they need to be defined in
individual themes
- if there are no recommendations, nothing is rendered
- the {{recommendations}} helper currently accepts "page", "limit",
"filter", and "order" as options
2023-09-26 17:15:17 +02:00
..
src Added {{recommendations}} theme helper (#18340) 2023-09-26 17:15:17 +02:00
test Added recommendations CRUD api (#17845) 2023-08-29 15:06:57 +00:00
.eslintrc.js Added recommendations CRUD api (#17845) 2023-08-29 15:06:57 +00:00
package.json Added BookshelfRepository and BookshelfRecommendationRepository 2023-09-01 15:10:34 +02:00
README.md Added recommendations CRUD api (#17845) 2023-08-29 15:06:57 +00:00
tsconfig.json Added recommendations CRUD api (#17845) 2023-08-29 15:06:57 +00:00

Recommendations

Usage

Develop

This is a monorepo package.

Follow the instructions for the top-level repo.

  1. git clone this repo & cd into it as usual
  2. Run yarn to install top-level dependencies.

Test

  • yarn lint run just eslint
  • yarn test run lint and tests