diff --git a/plugins/plugin-auto-frontmatter/package.json b/plugins/plugin-auto-frontmatter/package.json index 776bb065..4cb3eb20 100644 --- a/plugins/plugin-auto-frontmatter/package.json +++ b/plugins/plugin-auto-frontmatter/package.json @@ -2,13 +2,14 @@ "name": "@vuepress-plume/plugin-auto-frontmatter", "type": "module", "version": "1.0.0-rc.30", - "description": "The Plugin for VuePres 2", + "description": "The Plugin for VuePres 2 - auto frontmatter", "author": "pengzhanbo ", "license": "MIT", "homepage": "https://github.com/pengzhanbo/vuepress-theme-plume#readme", "repository": { "type": "git", - "url": "git+https://github.com/pengzhanbo/vuepress-theme-plume.git" + "url": "git+https://github.com/pengzhanbo/vuepress-theme-plume.git", + "directory": "plugins/plugin-auto-frontmatter" }, "bugs": { "url": "https://github.com/pengzhanbo/vuepress-theme-plume/issues" diff --git a/plugins/plugin-baidu-tongji/package.json b/plugins/plugin-baidu-tongji/package.json index bc9d8d83..2cde277e 100644 --- a/plugins/plugin-baidu-tongji/package.json +++ b/plugins/plugin-baidu-tongji/package.json @@ -2,13 +2,14 @@ "name": "@vuepress-plume/plugin-baidu-tongji", "type": "module", "version": "1.0.0-rc.30", - "description": "The Plugin for VuePres 2", + "description": "The Plugin for VuePres 2 - baidu tongji", "author": "pengzhanbo (https://github.com/pengzhanbo/)", "license": "MIT", "homepage": "https://github.com/pengzhanbo/vuepress-theme-plume#readme", "repository": { "type": "git", - "url": "git+https://github.com/pengzhanbo/vuepress-theme-plume.git" + "url": "git+https://github.com/pengzhanbo/vuepress-theme-plume.git", + "directory": "plugins/plugin-baidu-tongji" }, "bugs": { "url": "https://github.com/pengzhanbo/vuepress-theme-plume/issues" diff --git a/plugins/plugin-blog-data/package.json b/plugins/plugin-blog-data/package.json index f5fdfad2..5cc11f19 100644 --- a/plugins/plugin-blog-data/package.json +++ b/plugins/plugin-blog-data/package.json @@ -2,13 +2,14 @@ "name": "@vuepress-plume/plugin-blog-data", "type": "module", "version": "1.0.0-rc.30", - "description": "The Plugin for VuePres 2", + "description": "The Plugin for VuePres 2 - blog data", "author": "pengzhanbo ", "license": "MIT", "homepage": "https://github.com/pengzhanbo/vuepress-theme-plume#readme", "repository": { "type": "git", - "url": "git+https://github.com/pengzhanbo/vuepress-theme-plume.git" + "url": "git+https://github.com/pengzhanbo/vuepress-theme-plume.git", + "directory": "plugins/plugin-blog-data" }, "bugs": { "url": "https://github.com/pengzhanbo/vuepress-theme-plume/issues" diff --git a/plugins/plugin-blog-data/src/shared/index.ts b/plugins/plugin-blog-data/src/shared/index.ts index 86af918c..1ef0a0ba 100644 --- a/plugins/plugin-blog-data/src/shared/index.ts +++ b/plugins/plugin-blog-data/src/shared/index.ts @@ -5,8 +5,10 @@ export interface BlogDataPluginOptions { exclude?: string | string[] sortBy?: 'createTime' | false | ((prev: T, next: T) => boolean) excerpt?: boolean - extendBlogData?: (page: T) => Record + extendBlogData?: (page: T, extra: Record) => Record pageFilter?: (page: Page) => boolean + + extraBlogData?: (extra: Record) => void } export type BlogPostData = BlogPostDataItem[] diff --git a/plugins/plugin-caniuse/package.json b/plugins/plugin-caniuse/package.json index 71264482..f4407e75 100644 --- a/plugins/plugin-caniuse/package.json +++ b/plugins/plugin-caniuse/package.json @@ -8,7 +8,8 @@ "homepage": "https://github.com/pengzhanbo/vuepress-theme-plume#readme", "repository": { "type": "git", - "url": "git+https://github.com/pengzhanbo/vuepress-theme-plume.git" + "url": "git+https://github.com/pengzhanbo/vuepress-theme-plume.git", + "directory": "plugins/plugin-caniuse" }, "bugs": { "url": "https://github.com/pengzhanbo/vuepress-theme-plume/issues" diff --git a/plugins/plugin-content-update/package.json b/plugins/plugin-content-update/package.json index 698d1c6c..750c6ecc 100644 --- a/plugins/plugin-content-update/package.json +++ b/plugins/plugin-content-update/package.json @@ -2,13 +2,14 @@ "name": "@vuepress-plume/plugin-content-update", "type": "module", "version": "1.0.0-rc.30", - "description": "The Plugin for VuePres 2", + "description": "The Plugin for VuePres 2 - content update", "author": "pengzhanbo ", "license": "MIT", "homepage": "https://github.com/pengzhanbo/vuepress-theme-plume#readme", "repository": { "type": "git", - "url": "git+https://github.com/pengzhanbo/vuepress-theme-plume.git" + "url": "git+https://github.com/pengzhanbo/vuepress-theme-plume.git", + "directory": "plugins/plugin-content-update" }, "bugs": { "url": "https://github.com/pengzhanbo/vuepress-theme-plume/issues" diff --git a/plugins/plugin-copy-code/package.json b/plugins/plugin-copy-code/package.json index 3adfdd4d..3a958ad8 100644 --- a/plugins/plugin-copy-code/package.json +++ b/plugins/plugin-copy-code/package.json @@ -2,13 +2,14 @@ "name": "@vuepress-plume/plugin-copy-code", "type": "module", "version": "1.0.0-rc.30", - "description": "The Plugin for VuePres 2", + "description": "The Plugin for VuePres 2 - copy code", "author": "pengzhanbo ", "license": "MIT", "homepage": "https://github.com/pengzhanbo/vuepress-theme-plume#readme", "repository": { "type": "git", - "url": "git+https://github.com/pengzhanbo/vuepress-theme-plume.git" + "url": "git+https://github.com/pengzhanbo/vuepress-theme-plume.git", + "directory": "plugins/plugin-copy-code" }, "bugs": { "url": "https://github.com/pengzhanbo/vuepress-theme-plume/issues" diff --git a/plugins/plugin-iconify/package.json b/plugins/plugin-iconify/package.json index 83ae1a86..7afd7156 100644 --- a/plugins/plugin-iconify/package.json +++ b/plugins/plugin-iconify/package.json @@ -2,13 +2,14 @@ "name": "@vuepress-plume/plugin-iconify", "type": "module", "version": "1.0.0-rc.30", - "description": "The Plugin for VuePres 2", + "description": "The Plugin for VuePres 2 - iconify", "author": "pengzhanbo ", "license": "MIT", "homepage": "https://github.com/pengzhanbo/vuepress-theme-plume#readme", "repository": { "type": "git", - "url": "git+https://github.com/pengzhanbo/vuepress-theme-plume.git" + "url": "git+https://github.com/pengzhanbo/vuepress-theme-plume.git", + "directory": "plugins/plugin-iconify" }, "bugs": { "url": "https://github.com/pengzhanbo/vuepress-theme-plume/issues" diff --git a/plugins/plugin-netlify-functions/package.json b/plugins/plugin-netlify-functions/package.json index d264537c..5b13e554 100644 --- a/plugins/plugin-netlify-functions/package.json +++ b/plugins/plugin-netlify-functions/package.json @@ -8,7 +8,8 @@ "homepage": "https://github.com/pengzhanbo/vuepress-theme-plume#readme", "repository": { "type": "git", - "url": "git+https://github.com/pengzhanbo/vuepress-theme-plume.git" + "url": "git+https://github.com/pengzhanbo/vuepress-theme-plume.git", + "directory": "plugins/plugin-netlify-functions" }, "bugs": { "url": "https://github.com/pengzhanbo/vuepress-theme-plume/issues" diff --git a/plugins/plugin-notes-data/package.json b/plugins/plugin-notes-data/package.json index f243b7d8..91a5c62c 100644 --- a/plugins/plugin-notes-data/package.json +++ b/plugins/plugin-notes-data/package.json @@ -2,13 +2,14 @@ "name": "@vuepress-plume/plugin-notes-data", "type": "module", "version": "1.0.0-rc.30", - "description": "The Plugin for VuePres 2", + "description": "The Plugin for VuePres 2 - notes data", "author": "pengzhanbo ", "license": "MIT", "homepage": "https://github.com/pengzhanbo/vuepress-theme-plume#readme", "repository": { "type": "git", - "url": "git+https://github.com/pengzhanbo/vuepress-theme-plume.git" + "url": "git+https://github.com/pengzhanbo/vuepress-theme-plume.git", + "directory": "plugins/plugin-notes-data" }, "bugs": { "url": "https://github.com/pengzhanbo/vuepress-theme-plume/issues"