@docusaurus/theme-classic 0.0.0-4460 → 0.0.0-4461
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.
|
@@ -62,10 +62,13 @@ function BlogPostItem(props) {
|
|
|
62
62
|
const image = assets.image ?? frontMatter.image;
|
|
63
63
|
const truncatedPost = !isBlogPostPage && truncated;
|
|
64
64
|
const tagsExists = tags.length > 0;
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
const TitleHeading = isBlogPostPage ? 'h1' : 'h2';
|
|
66
|
+
return (
|
|
67
|
+
<article
|
|
68
|
+
className={!isBlogPostPage ? 'margin-bottom--xl' : undefined}
|
|
69
|
+
itemProp="blogPost"
|
|
70
|
+
itemScope
|
|
71
|
+
itemType="http://schema.org/BlogPosting">
|
|
69
72
|
<header>
|
|
70
73
|
<TitleHeading className={styles.blogPostTitle} itemProp="headline">
|
|
71
74
|
{isBlogPostPage ? (
|
|
@@ -90,16 +93,6 @@ function BlogPostItem(props) {
|
|
|
90
93
|
</div>
|
|
91
94
|
<BlogPostAuthors authors={authors} assets={assets} />
|
|
92
95
|
</header>
|
|
93
|
-
);
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
return (
|
|
97
|
-
<article
|
|
98
|
-
className={!isBlogPostPage ? 'margin-bottom--xl' : undefined}
|
|
99
|
-
itemProp="blogPost"
|
|
100
|
-
itemScope
|
|
101
|
-
itemType="http://schema.org/BlogPosting">
|
|
102
|
-
{renderPostHeader()}
|
|
103
96
|
|
|
104
97
|
{image && (
|
|
105
98
|
<meta
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/theme-classic",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-4461",
|
|
4
4
|
"description": "Classic theme for Docusaurus",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/theme-classic.d.ts",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"update-code-translations": "node -e 'require(\"./update-code-translations.js\").run()'"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@docusaurus/core": "0.0.0-
|
|
27
|
-
"@docusaurus/plugin-content-blog": "0.0.0-
|
|
28
|
-
"@docusaurus/plugin-content-docs": "0.0.0-
|
|
29
|
-
"@docusaurus/plugin-content-pages": "0.0.0-
|
|
30
|
-
"@docusaurus/theme-common": "0.0.0-
|
|
31
|
-
"@docusaurus/theme-translations": "0.0.0-
|
|
32
|
-
"@docusaurus/utils": "0.0.0-
|
|
33
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
26
|
+
"@docusaurus/core": "0.0.0-4461",
|
|
27
|
+
"@docusaurus/plugin-content-blog": "0.0.0-4461",
|
|
28
|
+
"@docusaurus/plugin-content-docs": "0.0.0-4461",
|
|
29
|
+
"@docusaurus/plugin-content-pages": "0.0.0-4461",
|
|
30
|
+
"@docusaurus/theme-common": "0.0.0-4461",
|
|
31
|
+
"@docusaurus/theme-translations": "0.0.0-4461",
|
|
32
|
+
"@docusaurus/utils": "0.0.0-4461",
|
|
33
|
+
"@docusaurus/utils-validation": "0.0.0-4461",
|
|
34
34
|
"@mdx-js/mdx": "^1.6.21",
|
|
35
35
|
"@mdx-js/react": "^1.6.21",
|
|
36
36
|
"clsx": "^1.1.1",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"rtlcss": "^3.3.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@docusaurus/module-type-aliases": "0.0.0-
|
|
49
|
-
"@docusaurus/types": "0.0.0-
|
|
48
|
+
"@docusaurus/module-type-aliases": "0.0.0-4461",
|
|
49
|
+
"@docusaurus/types": "0.0.0-4461",
|
|
50
50
|
"@types/mdx-js__react": "^1.5.4",
|
|
51
51
|
"@types/parse-numeric-range": "^0.0.1",
|
|
52
52
|
"@types/rtlcss": "^3.1.1",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"engines": {
|
|
62
62
|
"node": ">=14"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "1dbcd755e45892389706fa21e009821b130039c9"
|
|
65
65
|
}
|
|
@@ -65,11 +65,14 @@ function BlogPostItem(props: Props): JSX.Element {
|
|
|
65
65
|
const image = assets.image ?? frontMatter.image;
|
|
66
66
|
const truncatedPost = !isBlogPostPage && truncated;
|
|
67
67
|
const tagsExists = tags.length > 0;
|
|
68
|
+
const TitleHeading = isBlogPostPage ? 'h1' : 'h2';
|
|
68
69
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
return (
|
|
71
|
+
<article
|
|
72
|
+
className={!isBlogPostPage ? 'margin-bottom--xl' : undefined}
|
|
73
|
+
itemProp="blogPost"
|
|
74
|
+
itemScope
|
|
75
|
+
itemType="http://schema.org/BlogPosting">
|
|
73
76
|
<header>
|
|
74
77
|
<TitleHeading className={styles.blogPostTitle} itemProp="headline">
|
|
75
78
|
{isBlogPostPage ? (
|
|
@@ -94,16 +97,6 @@ function BlogPostItem(props: Props): JSX.Element {
|
|
|
94
97
|
</div>
|
|
95
98
|
<BlogPostAuthors authors={authors} assets={assets} />
|
|
96
99
|
</header>
|
|
97
|
-
);
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
return (
|
|
101
|
-
<article
|
|
102
|
-
className={!isBlogPostPage ? 'margin-bottom--xl' : undefined}
|
|
103
|
-
itemProp="blogPost"
|
|
104
|
-
itemScope
|
|
105
|
-
itemType="http://schema.org/BlogPosting">
|
|
106
|
-
{renderPostHeader()}
|
|
107
100
|
|
|
108
101
|
{image && (
|
|
109
102
|
<meta itemProp="image" content={withBaseUrl(image, {absolute: true})} />
|