Skip to content

Commit

Permalink
馃敽Add Nuxt setup instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasbeauvais committed May 15, 2020
1 parent 38082c5 commit 8a73aff
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@ import VueSocialSharing from 'vue-social-sharing'
Vue.use(SocialSharing);
```

##### Nuxt
```javascript
// In your nuxt.config.js file:
modules: [
'vue-social-sharing/nuxt'
]
```

##### HTML

```html
Expand Down Expand Up @@ -162,7 +170,6 @@ Vue.use(VueSocialSharing, {
}
})


new Vue({
el: '#app',
})
Expand All @@ -175,6 +182,22 @@ Type | Effect
`popup` | Open the sharing link in a new popup
`direct` | Open the sharing link directly (suitable for mobile apps sharing, emails, sms, ...)

## Extending the network list in Nuxt

You can extend the list of available networks directly in your `nuxt.config.js` file:
```javascript
modules: [
['vue-social-sharing/nuxt', {
networks: {
fakeblock: {
sharer: 'https://fakeblock.com/share?url=@url&title=@title',
type: 'popup'
}
}
}],
]
```

## Feature request
Feel free to open an issue to ask for a new social network support.

Expand Down

0 comments on commit 8a73aff

Please sign in to comment.