Updated readme to tag latest unpkg version in script

Unpkg recommends tagging exact version in the url to avoid redirects and faster load times. Also ensures the init script is in sync with the unpkg version being picked up in case of any changes.
This commit is contained in:
Rish 2020-04-23 13:56:09 +05:30
parent 884e197cca
commit c58f29f1a9

View File

@ -10,7 +10,7 @@ Drop-in script to make the bulk of members work on any theme.
To load members.js in any Ghost theme, add below code in theme's `default.hbs` before the end of body tag. To load members.js in any Ghost theme, add below code in theme's `default.hbs` before the end of body tag.
```html ```html
<script src="https://unpkg.com/@tryghost/members-js"></script> <script type="text/javascript" src="https://unpkg.com/@tryghost/members-js@0.1.1"></script>
<script> <script>
// Initializes members.js // Initializes members.js
window.GhostMembers.init({ window.GhostMembers.init({