@docusaurus/theme-classic 0.0.0-4545 → 0.0.0-4546
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.
|
@@ -9,7 +9,8 @@ import Link from '@docusaurus/Link';
|
|
|
9
9
|
import BlogLayout from '@theme/BlogLayout';
|
|
10
10
|
import BlogPostItem from '@theme/BlogPostItem';
|
|
11
11
|
import Translate, {translate} from '@docusaurus/Translate';
|
|
12
|
-
import {ThemeClassNames, usePluralForm} from '@docusaurus/theme-common';
|
|
12
|
+
import {ThemeClassNames, usePluralForm} from '@docusaurus/theme-common';
|
|
13
|
+
import BlogListPaginator from '@theme/BlogListPaginator'; // Very simple pluralization: probably good enough for now
|
|
13
14
|
|
|
14
15
|
function useBlogPostsPlural() {
|
|
15
16
|
const {selectMessage} = usePluralForm();
|
|
@@ -31,7 +32,7 @@ function useBlogPostsPlural() {
|
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
export default function BlogTagsPostsPage(props) {
|
|
34
|
-
const {metadata, items, sidebar} = props;
|
|
35
|
+
const {metadata, items, sidebar, listMetadata} = props;
|
|
35
36
|
const {allTagsPath, name: tagName, count} = metadata;
|
|
36
37
|
const blogPostsPlural = useBlogPostsPlural();
|
|
37
38
|
const title = translate(
|
|
@@ -77,6 +78,7 @@ export default function BlogTagsPostsPage(props) {
|
|
|
77
78
|
<BlogPostContent />
|
|
78
79
|
</BlogPostItem>
|
|
79
80
|
))}
|
|
81
|
+
<BlogListPaginator metadata={listMetadata} />
|
|
80
82
|
</BlogLayout>
|
|
81
83
|
);
|
|
82
84
|
}
|
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-4546",
|
|
4
4
|
"description": "Classic theme for Docusaurus",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/theme-classic.d.ts",
|
|
@@ -21,15 +21,15 @@
|
|
|
21
21
|
"format:lib-next": "prettier --config ../../.prettierrc --write \"lib-next/**/*.{js,ts,jsx,tsc}\""
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@docusaurus/core": "0.0.0-
|
|
25
|
-
"@docusaurus/plugin-content-blog": "0.0.0-
|
|
26
|
-
"@docusaurus/plugin-content-docs": "0.0.0-
|
|
27
|
-
"@docusaurus/plugin-content-pages": "0.0.0-
|
|
28
|
-
"@docusaurus/theme-common": "0.0.0-
|
|
29
|
-
"@docusaurus/theme-translations": "0.0.0-
|
|
30
|
-
"@docusaurus/utils": "0.0.0-
|
|
31
|
-
"@docusaurus/utils-common": "0.0.0-
|
|
32
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
24
|
+
"@docusaurus/core": "0.0.0-4546",
|
|
25
|
+
"@docusaurus/plugin-content-blog": "0.0.0-4546",
|
|
26
|
+
"@docusaurus/plugin-content-docs": "0.0.0-4546",
|
|
27
|
+
"@docusaurus/plugin-content-pages": "0.0.0-4546",
|
|
28
|
+
"@docusaurus/theme-common": "0.0.0-4546",
|
|
29
|
+
"@docusaurus/theme-translations": "0.0.0-4546",
|
|
30
|
+
"@docusaurus/utils": "0.0.0-4546",
|
|
31
|
+
"@docusaurus/utils-common": "0.0.0-4546",
|
|
32
|
+
"@docusaurus/utils-validation": "0.0.0-4546",
|
|
33
33
|
"@mdx-js/react": "^1.6.21",
|
|
34
34
|
"clsx": "^1.1.1",
|
|
35
35
|
"copy-text-to-clipboard": "^3.0.1",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"rtlcss": "^3.3.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@docusaurus/module-type-aliases": "0.0.0-
|
|
46
|
-
"@docusaurus/types": "0.0.0-
|
|
45
|
+
"@docusaurus/module-type-aliases": "0.0.0-4546",
|
|
46
|
+
"@docusaurus/types": "0.0.0-4546",
|
|
47
47
|
"@types/mdx-js__react": "^1.5.4",
|
|
48
48
|
"@types/parse-numeric-range": "^0.0.1",
|
|
49
49
|
"@types/prismjs": "^1.26.0",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"engines": {
|
|
63
63
|
"node": ">=14"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "f4dc68b452de796a2afbc90dfa03322c3c579b03"
|
|
66
66
|
}
|
|
@@ -13,6 +13,7 @@ import BlogPostItem from '@theme/BlogPostItem';
|
|
|
13
13
|
import type {Props} from '@theme/BlogTagsPostsPage';
|
|
14
14
|
import Translate, {translate} from '@docusaurus/Translate';
|
|
15
15
|
import {ThemeClassNames, usePluralForm} from '@docusaurus/theme-common';
|
|
16
|
+
import BlogListPaginator from '@theme/BlogListPaginator';
|
|
16
17
|
|
|
17
18
|
// Very simple pluralization: probably good enough for now
|
|
18
19
|
function useBlogPostsPlural() {
|
|
@@ -33,7 +34,7 @@ function useBlogPostsPlural() {
|
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
export default function BlogTagsPostsPage(props: Props): JSX.Element {
|
|
36
|
-
const {metadata, items, sidebar} = props;
|
|
37
|
+
const {metadata, items, sidebar, listMetadata} = props;
|
|
37
38
|
const {allTagsPath, name: tagName, count} = metadata;
|
|
38
39
|
const blogPostsPlural = useBlogPostsPlural();
|
|
39
40
|
const title = translate(
|
|
@@ -77,6 +78,7 @@ export default function BlogTagsPostsPage(props: Props): JSX.Element {
|
|
|
77
78
|
<BlogPostContent />
|
|
78
79
|
</BlogPostItem>
|
|
79
80
|
))}
|
|
81
|
+
<BlogListPaginator metadata={listMetadata} />
|
|
80
82
|
</BlogLayout>
|
|
81
83
|
);
|
|
82
84
|
}
|