Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit 9b638c3

Browse files
docs: update Newsletter in component section (#62)
1 parent 24b0f15 commit 9b638c3

File tree

1 file changed

+5
-18
lines changed

1 file changed

+5
-18
lines changed

docs/components/README.md

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -96,32 +96,19 @@ export default {
9696

9797
<img src="/Vssue.png" />
9898

99-
## `<Newsletter>`
99+
## `<SimpleNewsletter>`
100100

101-
- Source Code: [Comment.vue](https://github.com/ulivz/vuepress-plugin-blog/blob/master/src/client/components/Newsletter.vue)
101+
Implemented by [vuepress-plugin-mailchimp](https://github.com/newsbielt703/vuepress-plugin-mailchimp)
102+
103+
- Source Code: [SimpleNewsletter.vue](https://github.com/newsbielt703/vuepress-plugin-mailchimp/blob/master/src/components/SimpleNewsletter.vue)
102104

103105
- Usage:
104106

105107
```vue
106108
<template>
107-
<Newsletter />
109+
<SimpleNewsletter/>
108110
</template>
109-
110-
<script>
111-
import { Newsletter } from '@vuepress/plugin-blog/lib/client/components'
112-
export default {
113-
components: {
114-
Newsletter
115-
}
116-
}
117-
</script>
118111
```
119112
- Output:
120113

121114
<img src="/Newsletter.png" width="500"/>
122-
123-
::: tip
124-
For `<Comment>` and `<Newsletter>`:
125-
126-
When you're writing your own theme, you may offer user options whether to enable or not. In this scenario, you can still simply put those components in your layout component because it has handled this condition. It'll render nothing without error if the feature is disabled.
127-
:::

0 commit comments

Comments
 (0)