diff --git a/ghost/portal/README.md b/ghost/portal/README.md index 90f27c1a60..d420295e61 100644 --- a/ghost/portal/README.md +++ b/ghost/portal/README.md @@ -7,17 +7,10 @@ Drop-in script to make the bulk of members work on any theme. ## Usage -Add below code in your theme's `default.hbs` before the end of body tag OR in the code injection footer in Ghost Admin. +Add below script in your theme's `default.hbs` just before the end of body tag OR in the code injection footer in Ghost Admin. ```html - ``` ## Basic Setup @@ -46,15 +39,10 @@ Only useful for active UI development without publishing a version on unpkg. Alw #### In your theme(Ex. Lyra): - Copy `members.min.js` from above and paste it in your theme at `assets/built/members.min.js` -- Add below code in your theme's `default.hbs` just above `{{{block "scripts"}}}` to add and initialize members script +- Add below code in your theme's `default.hbs` just before end of body tag + ```html - ``` ## Available Scripts @@ -69,10 +57,6 @@ Open [http://localhost:3000](http://localhost:3000) to view it in the browser. The page will reload if you make edits.
You will also see any lint errors in the console. -Note: You'll need to configure the local Admin API url for script initialization. -- Copy `.env.development.local.example` to `.env.development.local` -- Update the values to match your local dev version of Ghost - ### `yarn build` Creates the production single minified bundle for external use in `umd/members.min.js`.