kelyvin / ghost-caffeine-theme

A minimalist, Material Design inspired Ghost Theme for optimal desktop and mobile experiences
https://caffeinecoding.com
MIT License
333 stars 97 forks source link

Update theme to run without error on Ghost v4.0 #84

Closed hmobius closed 2 years ago

hmobius commented 3 years ago

https://gscan.ghost.org/ reports a number of incompatibilities in using Ghost v4 with Caffeine v4.1 (which is the most recent version I could find). Most of the issues are pretty trivial but the main one is

The v0.1 API and ghost.url.api() JavaScript helper have been removed. The v0.1 API & Public API Beta have been removed, along with the public/ghost-sdk.min.js file & the ghost.url.api() helper. All code relying on the v0.1 API must be upgraded to use the new API.

Which points to caffeine-theme.js where there are two calls to ghost.url. But I can't see where they come from to fix this. Could you update the theme to use the most recent version of the API please?