d24c7c5fa6
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 |
||
---|---|---|
.. | ||
src | ||
test | ||
.eslintrc.js | ||
package.json | ||
README.md | ||
tsconfig.json |
Recommendations
Usage
Develop
This is a monorepo package.
Follow the instructions for the top-level repo.
git clone
this repo &cd
into it as usual- Run
yarn
to install top-level dependencies.
Test
yarn lint
run just eslintyarn test
run lint and tests