@docusaurus/plugin-content-blog 0.0.0-4685 → 0.0.0-4693
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +1 -5
- package/package.json +9 -9
- package/src/index.ts +5 -7
package/lib/index.js
CHANGED
|
@@ -360,11 +360,7 @@ async function pluginContentBlog(context, options) {
|
|
|
360
360
|
};
|
|
361
361
|
const headTags = [];
|
|
362
362
|
feedTypes.forEach((feedType) => {
|
|
363
|
-
const
|
|
364
|
-
if (!feedsConfig) {
|
|
365
|
-
return;
|
|
366
|
-
}
|
|
367
|
-
const { type, path: feedConfigPath, title: feedConfigTitle } = feedConfig;
|
|
363
|
+
const { type, path: feedConfigPath, title: feedConfigTitle, } = feedsConfig[feedType];
|
|
368
364
|
headTags.push({
|
|
369
365
|
tagName: 'link',
|
|
370
366
|
attributes: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/plugin-content-blog",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-4693",
|
|
4
4
|
"description": "Blog plugin for Docusaurus.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/plugin-content-blog.d.ts",
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@docusaurus/core": "0.0.0-
|
|
22
|
-
"@docusaurus/logger": "0.0.0-
|
|
23
|
-
"@docusaurus/mdx-loader": "0.0.0-
|
|
24
|
-
"@docusaurus/utils": "0.0.0-
|
|
25
|
-
"@docusaurus/utils-common": "0.0.0-
|
|
26
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
21
|
+
"@docusaurus/core": "0.0.0-4693",
|
|
22
|
+
"@docusaurus/logger": "0.0.0-4693",
|
|
23
|
+
"@docusaurus/mdx-loader": "0.0.0-4693",
|
|
24
|
+
"@docusaurus/utils": "0.0.0-4693",
|
|
25
|
+
"@docusaurus/utils-common": "0.0.0-4693",
|
|
26
|
+
"@docusaurus/utils-validation": "0.0.0-4693",
|
|
27
27
|
"cheerio": "^1.0.0-rc.10",
|
|
28
28
|
"feed": "^4.2.2",
|
|
29
29
|
"fs-extra": "^10.0.1",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"webpack": "^5.69.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@docusaurus/types": "0.0.0-
|
|
38
|
+
"@docusaurus/types": "0.0.0-4693",
|
|
39
39
|
"escape-string-regexp": "^4.0.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"engines": {
|
|
46
46
|
"node": ">=14"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "f5ed3eaf62d30a211da3b0aaf76dfc6deafba859"
|
|
49
49
|
}
|
package/src/index.ts
CHANGED
|
@@ -546,13 +546,11 @@ export default async function pluginContentBlog(
|
|
|
546
546
|
const headTags: HtmlTags = [];
|
|
547
547
|
|
|
548
548
|
feedTypes.forEach((feedType) => {
|
|
549
|
-
const
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
const {type, path: feedConfigPath, title: feedConfigTitle} = feedConfig;
|
|
549
|
+
const {
|
|
550
|
+
type,
|
|
551
|
+
path: feedConfigPath,
|
|
552
|
+
title: feedConfigTitle,
|
|
553
|
+
} = feedsConfig[feedType];
|
|
556
554
|
|
|
557
555
|
headTags.push({
|
|
558
556
|
tagName: 'link',
|