This repository has been archived by the owner on May 13, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: intergrate mailchimp plugin * docs: add newsletter
- Loading branch information
1 parent
4373f16
commit f7dbd92
Showing
16 changed files
with
244 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
module.exports = { | ||
title: `ULIVZ`, | ||
plugins: [ | ||
[require('../../../lib/node'), { | ||
directories: [ | ||
{ | ||
id: 'post', | ||
dirname: '_posts', | ||
path: '/', | ||
}, | ||
], | ||
frontmatters: [ | ||
{ | ||
id: "tag", | ||
keys: ['tag', 'tags'], | ||
path: '/tag/', | ||
frontmatter: { title: 'Tag' }, | ||
}, | ||
{ | ||
id: "location", | ||
keys: ['location'], | ||
path: '/location/', | ||
frontmatter: { title: 'Location' }, | ||
} | ||
], | ||
newsletter: { | ||
endpoint: "https://billyyyyy3320.us4.list-manage.com/subscribe/post?u=4905113ee00d8210c2004e038&id=bd18d40138" | ||
}, | ||
}], | ||
], | ||
} |
7 changes: 7 additions & 0 deletions
7
examples/newsletter/.vuepress/theme/layouts/FrontmatterKey.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<template> | ||
<ul id="default-layout"> | ||
<li v-for="item in $frontmatterKey.list"> | ||
<router-link class="page-link" :to="item.path">{{ item.name }}</router-link> | ||
</li> | ||
</ul> | ||
</template> |
22 changes: 22 additions & 0 deletions
22
examples/newsletter/.vuepress/theme/layouts/GlobalLayout.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<template> | ||
<div id="global-layout"> | ||
<header style="background-color: #DDD"> | ||
<router-link to="/">Home</router-link>· | ||
<router-link to="/tag/">Tag</router-link>· | ||
<router-link to="/location/">Location</router-link> | ||
</header> | ||
<DefaultGlobalLayout/> | ||
<footer style="background-color: #DDD">Powered by VuePress</footer> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import GlobalLayout from '@app/components/GlobalLayout.vue' | ||
export default { | ||
components: { DefaultGlobalLayout: GlobalLayout }, | ||
created() { | ||
console.log() | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<template> | ||
<div> | ||
<ul id="default-layout"> | ||
<li v-for="page in $pagination.pages"> | ||
<router-link class="page-link" :to="page.path">{{ page.title }}</router-link> | ||
</li> | ||
</ul> | ||
<div id="pagination"> | ||
<router-link v-if="$pagination.hasPrev" :to="$pagination.prevLink">Prev</router-link> | ||
<router-link v-if="$pagination.hasNext" :to="$pagination.nextLink">Next</router-link> | ||
</div> | ||
|
||
<Pagination v-if="$pagination.length > 1"/> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import { Pagination } from '../../../../../lib/client/components.js' | ||
export default { | ||
components: { Pagination }, | ||
created() {}, | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<template> | ||
<div> | ||
<Content /> | ||
<SimpleNewsletter /> | ||
</div> | ||
|
||
</template> | ||
|
||
<script> | ||
import SimpleNewsletter from "vuepress-plugin-mailchimp/src/components/SimpleNewsletter"; | ||
export default { | ||
components: { | ||
SimpleNewsletter | ||
} | ||
}; | ||
</script> |
12 changes: 12 additions & 0 deletions
12
examples/newsletter/_posts/2018-11-7-frontmatter-in-vuepress.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
date: 2018-11-7 | ||
tag: | ||
- frontmatter | ||
- vuepress | ||
author: ULIVZ | ||
location: Hangzhou | ||
--- | ||
|
||
# Front Matter in VuePress | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
date: 2019-2-26 | ||
tag: | ||
- markdown | ||
- vuepress | ||
author: ULIVZ | ||
location: Hangzhou | ||
--- | ||
|
||
# Markdown Slot | ||
|
12 changes: 12 additions & 0 deletions
12
examples/newsletter/_posts/2019-5-16-writing-a-vuepress-theme-4.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
date: 2019-5-6 | ||
tag: | ||
- theme | ||
- blog | ||
- vuepress | ||
author: ULIVZ | ||
location: Shanghai | ||
--- | ||
|
||
# Writing a VuePress theme | ||
|
9 changes: 9 additions & 0 deletions
9
examples/newsletter/_posts/2019-8-15-why-I-like-git-rebase.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
date: 2019-8-15 | ||
tag: | ||
- git | ||
location: Taipei | ||
--- | ||
|
||
# Why I like "git rebase" | ||
|
9 changes: 9 additions & 0 deletions
9
examples/newsletter/_posts/2019-9-8-dive-into-vuepress-with-plugin-apis.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
date: 2019-9-8 | ||
tag: | ||
- vuepress | ||
location: Taipei | ||
--- | ||
|
||
# Dive into VuePress with Plugin APIs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3071,7 +3071,7 @@ de-indent@^1.0.2: | |
resolved "https://registry.yarnpkg.com/de-indent/-/de-indent-1.0.2.tgz#b2038e846dc33baa5796128d0804b455b8c1e21d" | ||
integrity sha1-sgOOhG3DO6pXlhKNCAS0VbjB4h0= | ||
|
||
[email protected], debug@^2.2.0, debug@^2.3.3, debug@^2.6.9: | ||
[email protected], debug@^2.1.3, debug@^2.2.0, debug@^2.3.3, debug@^2.6.9: | ||
version "2.6.9" | ||
resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" | ||
integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== | ||
|
@@ -5624,6 +5624,13 @@ jsonfile@^4.0.0: | |
optionalDependencies: | ||
graceful-fs "^4.1.6" | ||
|
||
jsonp@^0.2.1: | ||
version "0.2.1" | ||
resolved "https://registry.yarnpkg.com/jsonp/-/jsonp-0.2.1.tgz#a65b4fa0f10bda719a05441ea7b94c55f3e15bae" | ||
integrity sha1-pltPoPEL2nGaBUQep7lMVfPhW64= | ||
dependencies: | ||
debug "^2.1.3" | ||
|
||
jsonparse@^1.2.0: | ||
version "1.3.1" | ||
resolved "https://registry.yarnpkg.com/jsonparse/-/jsonparse-1.3.1.tgz#3f4dae4a91fac315f71062f8521cc239f1366280" | ||
|
@@ -7794,6 +7801,15 @@ query-string@^5.0.1: | |
object-assign "^4.1.0" | ||
strict-uri-encode "^1.0.0" | ||
|
||
query-string@^6.9.0: | ||
version "6.9.0" | ||
resolved "https://registry.yarnpkg.com/query-string/-/query-string-6.9.0.tgz#1c3b727c370cf00f177c99f328fda2108f8fa3dd" | ||
integrity sha512-KG4bhCFYapExLsUHrFt+kQVEegF2agm4cpF/VNc6pZVthIfCc/GK8t8VyNIE3nyXG9DK3Tf2EGkxjR6/uRdYsA== | ||
dependencies: | ||
decode-uri-component "^0.2.0" | ||
split-on-first "^1.0.0" | ||
strict-uri-encode "^2.0.0" | ||
|
||
querystring-es3@^0.2.0, querystring-es3@^0.2.1: | ||
version "0.2.1" | ||
resolved "https://registry.yarnpkg.com/querystring-es3/-/querystring-es3-0.2.1.tgz#9ec61f79049875707d69414596fd907a4d711e73" | ||
|
@@ -8726,6 +8742,11 @@ spdy@^4.0.1: | |
select-hose "^2.0.0" | ||
spdy-transport "^3.0.0" | ||
|
||
split-on-first@^1.0.0: | ||
version "1.1.0" | ||
resolved "https://registry.yarnpkg.com/split-on-first/-/split-on-first-1.1.0.tgz#f610afeee3b12bce1d0c30425e76398b78249a5f" | ||
integrity sha512-43ZssAJaMusuKWL8sKUBQXHWOpq8d6CfN/u1p4gUzfJkM05C8rxTmYrkIPTXapZpORA6LkkzcUulJ8FqA7Uudw== | ||
|
||
split-string@^3.0.1, split-string@^3.0.2: | ||
version "3.1.0" | ||
resolved "https://registry.yarnpkg.com/split-string/-/split-string-3.1.0.tgz#7cb09dda3a86585705c64b39a6466038682e8fe2" | ||
|
@@ -8841,6 +8862,11 @@ strict-uri-encode@^1.0.0: | |
resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz#279b225df1d582b1f54e65addd4352e18faa0713" | ||
integrity sha1-J5siXfHVgrH1TmWt3UNS4Y+qBxM= | ||
|
||
strict-uri-encode@^2.0.0: | ||
version "2.0.0" | ||
resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-2.0.0.tgz#b9c7330c7042862f6b142dc274bbcc5866ce3546" | ||
integrity sha1-ucczDHBChi9rFC3CdLvMWGbONUY= | ||
|
||
string-argv@^0.3.0: | ||
version "0.3.1" | ||
resolved "https://registry.yarnpkg.com/string-argv/-/string-argv-0.3.1.tgz#95e2fbec0427ae19184935f816d74aaa4c5c19da" | ||
|
@@ -9826,6 +9852,14 @@ vuepress-plugin-disqus-comment@^0.2.3: | |
dependencies: | ||
vue-disqus "^3.0.5" | ||
|
||
vuepress-plugin-mailchimp@^1.2.0: | ||
version "1.2.0" | ||
resolved "https://registry.yarnpkg.com/vuepress-plugin-mailchimp/-/vuepress-plugin-mailchimp-1.2.0.tgz#674ff69e94fc6b780920787685f40e2867ceb5cd" | ||
integrity sha512-MI3hZnI8UmuVJppbnGQjUwcv5Ylx73SO3n9jt+7MFR///SEU8Dx6BHVYMLKPPMYHcIFuJstvDgsYvhCkP155vg== | ||
dependencies: | ||
jsonp "^0.2.1" | ||
query-string "^6.9.0" | ||
|
||
vuepress-plugin-sitemap@^2.3.0: | ||
version "2.3.0" | ||
resolved "https://registry.yarnpkg.com/vuepress-plugin-sitemap/-/vuepress-plugin-sitemap-2.3.0.tgz#4fc2573b62235ca80db237fe5e407a241067318b" | ||
|