@docusaurus/plugin-content-blog 2.0.0-beta.677e53d4d → 2.0.0-beta.7

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.
Files changed (56) hide show
  1. package/lib/.tsbuildinfo +1 -1
  2. package/lib/authors.d.ts +23 -0
  3. package/lib/authors.js +150 -0
  4. package/lib/blogFrontMatter.d.ts +19 -6
  5. package/lib/blogFrontMatter.js +31 -19
  6. package/lib/blogUtils.d.ts +10 -2
  7. package/lib/blogUtils.js +146 -104
  8. package/lib/index.js +78 -77
  9. package/lib/markdownLoader.js +3 -3
  10. package/lib/pluginOptionSchema.d.ts +3 -26
  11. package/lib/pluginOptionSchema.js +22 -7
  12. package/lib/translations.d.ts +10 -0
  13. package/lib/translations.js +53 -0
  14. package/lib/types.d.ts +38 -14
  15. package/package.json +13 -11
  16. package/src/__tests__/__fixtures__/authorsMapFiles/authors.json +29 -0
  17. package/src/__tests__/__fixtures__/authorsMapFiles/authors.yml +27 -0
  18. package/src/__tests__/__fixtures__/authorsMapFiles/authorsBad1.json +5 -0
  19. package/src/__tests__/__fixtures__/authorsMapFiles/authorsBad1.yml +3 -0
  20. package/src/__tests__/__fixtures__/authorsMapFiles/authorsBad2.json +3 -0
  21. package/src/__tests__/__fixtures__/authorsMapFiles/authorsBad2.yml +2 -0
  22. package/src/__tests__/__fixtures__/authorsMapFiles/authorsBad3.json +8 -0
  23. package/src/__tests__/__fixtures__/authorsMapFiles/authorsBad3.yml +3 -0
  24. package/src/__tests__/__fixtures__/component/Typography.tsx +6 -0
  25. package/src/__tests__/__fixtures__/getAuthorsMapFilePath/contentPathEmpty/empty +0 -0
  26. package/src/__tests__/__fixtures__/getAuthorsMapFilePath/contentPathJson1/authors.json +0 -0
  27. package/src/__tests__/__fixtures__/getAuthorsMapFilePath/contentPathJson2/authors.json +0 -0
  28. package/src/__tests__/__fixtures__/getAuthorsMapFilePath/contentPathNestedYml/sub/folder/authors.yml +0 -0
  29. package/src/__tests__/__fixtures__/getAuthorsMapFilePath/contentPathYml1/authors.yml +0 -0
  30. package/src/__tests__/__fixtures__/getAuthorsMapFilePath/contentPathYml2/authors.yml +0 -0
  31. package/src/__tests__/__fixtures__/website/blog/2018-12-14-Happy-First-Birthday-Slash.md +3 -0
  32. package/src/__tests__/__fixtures__/website/blog/_partials/somePartial.md +3 -0
  33. package/src/__tests__/__fixtures__/website/blog/_partials/subfolder/somePartial.md +3 -0
  34. package/src/__tests__/__fixtures__/website/blog/_somePartial.md +3 -0
  35. package/src/__tests__/__fixtures__/website/blog/authors.yml +4 -0
  36. package/src/__tests__/__fixtures__/website/blog/mdx-blog-post.mdx +36 -0
  37. package/src/__tests__/__fixtures__/website/blog/simple-slug.md +4 -0
  38. package/src/__tests__/__fixtures__/website/i18n/en/docusaurus-plugin-content-blog/2018-12-14-Happy-First-Birthday-Slash.md +3 -0
  39. package/src/__tests__/__fixtures__/website/i18n/en/docusaurus-plugin-content-blog/authors.yml +5 -0
  40. package/src/__tests__/__snapshots__/generateBlogFeed.test.ts.snap +81 -3
  41. package/src/__tests__/__snapshots__/translations.test.ts.snap +64 -0
  42. package/src/__tests__/authors.test.ts +608 -0
  43. package/src/__tests__/blogFrontMatter.test.ts +93 -16
  44. package/src/__tests__/blogUtils.test.ts +94 -0
  45. package/src/__tests__/generateBlogFeed.test.ts +7 -1
  46. package/src/__tests__/index.test.ts +63 -12
  47. package/src/__tests__/pluginOptionSchema.test.ts +3 -3
  48. package/src/__tests__/translations.test.ts +92 -0
  49. package/src/authors.ts +202 -0
  50. package/src/blogFrontMatter.ts +73 -33
  51. package/src/blogUtils.ts +206 -131
  52. package/src/index.ts +98 -71
  53. package/{index.d.ts → src/plugin-content-blog.d.ts} +35 -31
  54. package/src/pluginOptionSchema.ts +25 -9
  55. package/src/translations.ts +63 -0
  56. package/src/types.ts +48 -16
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@docusaurus/plugin-content-blog",
3
- "version": "2.0.0-beta.677e53d4d",
3
+ "version": "2.0.0-beta.7",
4
4
  "description": "Blog plugin for Docusaurus.",
5
5
  "main": "lib/index.js",
6
- "types": "index.d.ts",
6
+ "types": "src/plugin-content-blog.d.ts",
7
7
  "scripts": {
8
8
  "build": "tsc",
9
9
  "watch": "tsc --watch"
@@ -18,21 +18,23 @@
18
18
  },
19
19
  "license": "MIT",
20
20
  "dependencies": {
21
- "@docusaurus/core": "2.0.0-beta.677e53d4d",
22
- "@docusaurus/mdx-loader": "2.0.0-beta.677e53d4d",
23
- "@docusaurus/types": "2.0.0-beta.677e53d4d",
24
- "@docusaurus/utils": "2.0.0-beta.677e53d4d",
25
- "@docusaurus/utils-validation": "2.0.0-beta.677e53d4d",
26
- "chalk": "^4.1.1",
21
+ "@docusaurus/core": "2.0.0-beta.7",
22
+ "@docusaurus/mdx-loader": "2.0.0-beta.7",
23
+ "@docusaurus/types": "2.0.0-beta.7",
24
+ "@docusaurus/utils": "2.0.0-beta.7",
25
+ "@docusaurus/utils-validation": "2.0.0-beta.7",
26
+ "chalk": "^4.1.2",
27
27
  "escape-string-regexp": "^4.0.0",
28
28
  "feed": "^4.2.2",
29
29
  "fs-extra": "^10.0.0",
30
30
  "globby": "^11.0.2",
31
+ "js-yaml": "^4.0.0",
31
32
  "loader-utils": "^2.0.0",
32
33
  "lodash": "^4.17.20",
33
- "reading-time": "^1.3.0",
34
+ "reading-time": "^1.5.0",
34
35
  "remark-admonitions": "^1.2.1",
35
- "tslib": "^2.2.0",
36
+ "tslib": "^2.3.1",
37
+ "utility-types": "^3.10.0",
36
38
  "webpack": "^5.40.0"
37
39
  },
38
40
  "peerDependencies": {
@@ -42,5 +44,5 @@
42
44
  "engines": {
43
45
  "node": ">=12.13.0"
44
46
  },
45
- "gitHead": "7fd8a4f8df207d6c603dec985604207d3b32a8bd"
47
+ "gitHead": "71a934b4d7319cd026657e3bb7e5832447454d07"
46
48
  }
@@ -0,0 +1,29 @@
1
+ {
2
+ "JMarcey": {
3
+ "name": "Joel Marcey",
4
+ "title": "Technical Lead & Developer Advocate at Facebook",
5
+ "url": "http://twitter.com/JoelMarcey",
6
+ "image_url": "https://github.com/JoelMarcey.png",
7
+ "twitter": "JoelMarcey"
8
+ },
9
+ "slorber": {
10
+ "name": "Sébastien Lorber",
11
+ "title": "Docusaurus maintainer",
12
+ "url": "https://sebastienlorber.com",
13
+ "image_url": "https://github.com/slorber.png",
14
+ "twitter": "sebastienlorber"
15
+ },
16
+ "yangshun": {
17
+ "name": "Yangshun Tay",
18
+ "title": "Front End Engineer at Facebook",
19
+ "url": "https://github.com/yangshun",
20
+ "image_url": "https://github.com/yangshun.png",
21
+ "twitter": "yangshunz"
22
+ },
23
+ "lex111": {
24
+ "name": "Alexey Pyltsyn",
25
+ "title": "Open-source enthusiast",
26
+ "url": "https://github.com/lex111",
27
+ "image_url": "https://github.com/lex111.png"
28
+ }
29
+ }
@@ -0,0 +1,27 @@
1
+
2
+ JMarcey:
3
+ name: Joel Marcey
4
+ title: Technical Lead & Developer Advocate at Facebook
5
+ url: http://twitter.com/JoelMarcey
6
+ image_url: https://github.com/JoelMarcey.png
7
+ twitter: JoelMarcey
8
+
9
+ slorber:
10
+ name: Sébastien Lorber
11
+ title: Docusaurus maintainer
12
+ url: https://sebastienlorber.com
13
+ image_url: https://github.com/slorber.png
14
+ twitter: sebastienlorber
15
+
16
+ yangshun:
17
+ name: Yangshun Tay
18
+ title: Front End Engineer at Facebook
19
+ url: https://github.com/yangshun
20
+ image_url: https://github.com/yangshun.png
21
+ twitter: yangshunz
22
+
23
+ lex111:
24
+ name: Alexey Pyltsyn
25
+ title: Open-source enthusiast
26
+ url: https://github.com/lex111
27
+ image_url: https://github.com/lex111.png
@@ -0,0 +1,5 @@
1
+ {
2
+ "slorber": {
3
+ "title": "Docusaurus maintainer"
4
+ }
5
+ }
@@ -0,0 +1,3 @@
1
+
2
+ slorber:
3
+ title: Docusaurus maintainer
@@ -0,0 +1,3 @@
1
+ {
2
+ "name": "Sébastien Lorber"
3
+ }
@@ -0,0 +1,2 @@
1
+
2
+ name: Sébastien Lorber
@@ -0,0 +1,8 @@
1
+ [
2
+ {
3
+ "name": "Sébastien Lorber"
4
+ },
5
+ {
6
+ "name": "Joel Marcey"
7
+ }
8
+ ]
@@ -0,0 +1,3 @@
1
+
2
+ - name: Sébastien Lorber
3
+ - name: Joel Marcey
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+
3
+ export const Typography: React.FC = (props) => {
4
+ return <p>{props.children}</p>
5
+ }
6
+ Typography.displayName = 'Typography'
@@ -1,5 +1,8 @@
1
1
  ---
2
2
  title: Happy 1st Birthday Slash!
3
+ authors:
4
+ - name: Yangshun Tay
5
+ - slorber
3
6
  ---
4
7
 
5
8
  Happy birthday!
@@ -0,0 +1,3 @@
1
+ This is a partial in file/folder starting with _:
2
+
3
+ It should be excluded by default
@@ -0,0 +1,3 @@
1
+ This is a partial in file/folder starting with _:
2
+
3
+ It should be excluded by default
@@ -0,0 +1,3 @@
1
+ This is a partial in file/folder starting with \_:
2
+
3
+ It should be excluded by default
@@ -0,0 +1,4 @@
1
+
2
+ slorber:
3
+ name: Sébastien Lorber
4
+ title: Docusaurus maintainer
@@ -0,0 +1,36 @@
1
+ ---
2
+ title: Full Blog Sample
3
+ date: 2021-03-05
4
+ ---
5
+
6
+ <h1>HTML Heading 1</h1>
7
+ <h2>HTML Heading 2</h2>
8
+ <p>HTML Paragraph</p>
9
+
10
+ import Typography from '../../component/Typography'
11
+
12
+ <Typography>Import DOM</Typography>
13
+
14
+ # Heading 1
15
+
16
+ ## Heading 2
17
+
18
+ ### Heading 3
19
+
20
+ #### Heading 4
21
+
22
+ ##### Heading 5
23
+
24
+ - list1
25
+ - list2
26
+ - list3
27
+
28
+
29
+ * list1
30
+ * list2
31
+ * list3
32
+
33
+ Normal Text *Italics Text* **Bold Text**
34
+
35
+ [link](https://v2.docusaurus.io/)
36
+ ![image](https://v2.docusaurus.io/)
@@ -2,6 +2,10 @@
2
2
  slug: /simple/slug
3
3
  title: Simple Slug
4
4
  date: 2020-08-15
5
+
6
+ author: Sébastien Lorber
7
+ author_title: Docusaurus maintainer
8
+ author_url: https://sebastienlorber.com
5
9
  ---
6
10
 
7
11
  simple url slug
@@ -1,5 +1,8 @@
1
1
  ---
2
2
  title: Happy 1st Birthday Slash! (translated)
3
+ authors:
4
+ - name: Yangshun Tay (translated)
5
+ - slorber
3
6
  ---
4
7
 
5
8
  Happy birthday! (translated)
@@ -0,0 +1,5 @@
1
+
2
+
3
+ slorber:
4
+ name: Sébastien Lorber (translated)
5
+ title: Docusaurus maintainer (translated)
@@ -7,18 +7,54 @@ exports[`blogFeed atom shows feed item for each post 1`] = `
7
7
  <feed xmlns=\\"http://www.w3.org/2005/Atom\\">
8
8
  <id>https://docusaurus.io/myBaseUrl/blog</id>
9
9
  <title>Hello Blog</title>
10
- <updated>2020-02-27T00:00:00.000Z</updated>
10
+ <updated>2021-03-05T00:00:00.000Z</updated>
11
11
  <generator>https://github.com/jpmonette/feed</generator>
12
12
  <link rel=\\"alternate\\" href=\\"https://docusaurus.io/myBaseUrl/blog\\"/>
13
13
  <subtitle>Hello Blog</subtitle>
14
14
  <icon>https://docusaurus.io/myBaseUrl/image/favicon.ico</icon>
15
15
  <rights>Copyright</rights>
16
+ <entry>
17
+ <title type=\\"html\\"><![CDATA[Full Blog Sample]]></title>
18
+ <id>Full Blog Sample</id>
19
+ <link href=\\"https://docusaurus.io/myBaseUrl/blog/mdx-blog-post\\"/>
20
+ <updated>2021-03-05T00:00:00.000Z</updated>
21
+ <summary type=\\"html\\"><![CDATA[HTML Heading 1]]></summary>
22
+ <content type=\\"html\\"><![CDATA[<h1>HTML Heading 1</h1><h2>HTML Heading 2</h2><p>HTML Paragraph</p><div>Import DOM</div><h1>Heading 1</h1><h2>Heading 2</h2><h3>Heading 3</h3><h4>Heading 4</h4><h5>Heading 5</h5><ul><li>list1</li><li>list2</li><li>list3</li></ul><ul><li>list1</li><li>list2</li><li>list3</li></ul><p>Normal Text <em>Italics Text</em> <strong>Bold Text</strong></p><p><a href=\\"https://v2.docusaurus.io/\\">link</a>
23
+ <img src=\\"https://v2.docusaurus.io/\\" alt=\\"image\\"/></p>]]></content>
24
+ </entry>
25
+ <entry>
26
+ <title type=\\"html\\"><![CDATA[Complex Slug]]></title>
27
+ <id>/hey/my super path/héllô</id>
28
+ <link href=\\"https://docusaurus.io/myBaseUrl/blog/hey/my super path/héllô\\"/>
29
+ <updated>2020-08-16T00:00:00.000Z</updated>
30
+ <summary type=\\"html\\"><![CDATA[complex url slug]]></summary>
31
+ <content type=\\"html\\"><![CDATA[<p>complex url slug</p>]]></content>
32
+ </entry>
33
+ <entry>
34
+ <title type=\\"html\\"><![CDATA[Simple Slug]]></title>
35
+ <id>/simple/slug</id>
36
+ <link href=\\"https://docusaurus.io/myBaseUrl/blog/simple/slug\\"/>
37
+ <updated>2020-08-15T00:00:00.000Z</updated>
38
+ <summary type=\\"html\\"><![CDATA[simple url slug]]></summary>
39
+ <content type=\\"html\\"><![CDATA[<p>simple url slug</p>]]></content>
40
+ <author>
41
+ <name>Sébastien Lorber</name>
42
+ <uri>https://sebastienlorber.com</uri>
43
+ </author>
44
+ </entry>
16
45
  <entry>
17
46
  <title type=\\"html\\"><![CDATA[draft]]></title>
18
47
  <id>draft</id>
19
48
  <link href=\\"https://docusaurus.io/myBaseUrl/blog/draft\\"/>
20
49
  <updated>2020-02-27T00:00:00.000Z</updated>
21
50
  <summary type=\\"html\\"><![CDATA[this post should not be published yet]]></summary>
51
+ <content type=\\"html\\"><![CDATA[<p>this post should not be published yet</p>]]></content>
52
+ </entry>
53
+ <entry>
54
+ <title type=\\"html\\"><![CDATA[some heading]]></title>
55
+ <id>some heading</id>
56
+ <link href=\\"https://docusaurus.io/myBaseUrl/blog/heading-as-title\\"/>
57
+ <updated>2019-01-02T00:00:00.000Z</updated>
22
58
  </entry>
23
59
  <entry>
24
60
  <title type=\\"html\\"><![CDATA[date-matter]]></title>
@@ -26,6 +62,7 @@ exports[`blogFeed atom shows feed item for each post 1`] = `
26
62
  <link href=\\"https://docusaurus.io/myBaseUrl/blog/date-matter\\"/>
27
63
  <updated>2019-01-01T00:00:00.000Z</updated>
28
64
  <summary type=\\"html\\"><![CDATA[date inside front matter]]></summary>
65
+ <content type=\\"html\\"><![CDATA[<p>date inside front matter</p>]]></content>
29
66
  </entry>
30
67
  <entry>
31
68
  <title type=\\"html\\"><![CDATA[Happy 1st Birthday Slash! (translated)]]></title>
@@ -33,6 +70,13 @@ exports[`blogFeed atom shows feed item for each post 1`] = `
33
70
  <link href=\\"https://docusaurus.io/myBaseUrl/blog/2018/12/14/Happy-First-Birthday-Slash\\"/>
34
71
  <updated>2018-12-14T00:00:00.000Z</updated>
35
72
  <summary type=\\"html\\"><![CDATA[Happy birthday! (translated)]]></summary>
73
+ <content type=\\"html\\"><![CDATA[<p>Happy birthday! (translated)</p>]]></content>
74
+ <author>
75
+ <name>Yangshun Tay (translated)</name>
76
+ </author>
77
+ <author>
78
+ <name>Sébastien Lorber (translated)</name>
79
+ </author>
36
80
  </entry>
37
81
  </feed>"
38
82
  `;
@@ -41,21 +85,53 @@ exports[`blogFeed rss should not show feed without posts 1`] = `null`;
41
85
 
42
86
  exports[`blogFeed rss shows feed item for each post 1`] = `
43
87
  "<?xml version=\\"1.0\\" encoding=\\"utf-8\\"?>
44
- <rss version=\\"2.0\\">
88
+ <rss version=\\"2.0\\" xmlns:dc=\\"http://purl.org/dc/elements/1.1/\\" xmlns:content=\\"http://purl.org/rss/1.0/modules/content/\\">
45
89
  <channel>
46
90
  <title>Hello Blog</title>
47
91
  <link>https://docusaurus.io/myBaseUrl/blog</link>
48
92
  <description>Hello Blog</description>
49
- <lastBuildDate>Thu, 27 Feb 2020 00:00:00 GMT</lastBuildDate>
93
+ <lastBuildDate>Fri, 05 Mar 2021 00:00:00 GMT</lastBuildDate>
50
94
  <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
51
95
  <generator>https://github.com/jpmonette/feed</generator>
52
96
  <copyright>Copyright</copyright>
97
+ <item>
98
+ <title><![CDATA[Full Blog Sample]]></title>
99
+ <link>https://docusaurus.io/myBaseUrl/blog/mdx-blog-post</link>
100
+ <guid>Full Blog Sample</guid>
101
+ <pubDate>Fri, 05 Mar 2021 00:00:00 GMT</pubDate>
102
+ <description><![CDATA[HTML Heading 1]]></description>
103
+ <content:encoded><![CDATA[<h1>HTML Heading 1</h1><h2>HTML Heading 2</h2><p>HTML Paragraph</p><div>Import DOM</div><h1>Heading 1</h1><h2>Heading 2</h2><h3>Heading 3</h3><h4>Heading 4</h4><h5>Heading 5</h5><ul><li>list1</li><li>list2</li><li>list3</li></ul><ul><li>list1</li><li>list2</li><li>list3</li></ul><p>Normal Text <em>Italics Text</em> <strong>Bold Text</strong></p><p><a href=\\"https://v2.docusaurus.io/\\">link</a>
104
+ <img src=\\"https://v2.docusaurus.io/\\" alt=\\"image\\"/></p>]]></content:encoded>
105
+ </item>
106
+ <item>
107
+ <title><![CDATA[Complex Slug]]></title>
108
+ <link>https://docusaurus.io/myBaseUrl/blog/hey/my super path/héllô</link>
109
+ <guid>/hey/my super path/héllô</guid>
110
+ <pubDate>Sun, 16 Aug 2020 00:00:00 GMT</pubDate>
111
+ <description><![CDATA[complex url slug]]></description>
112
+ <content:encoded><![CDATA[<p>complex url slug</p>]]></content:encoded>
113
+ </item>
114
+ <item>
115
+ <title><![CDATA[Simple Slug]]></title>
116
+ <link>https://docusaurus.io/myBaseUrl/blog/simple/slug</link>
117
+ <guid>/simple/slug</guid>
118
+ <pubDate>Sat, 15 Aug 2020 00:00:00 GMT</pubDate>
119
+ <description><![CDATA[simple url slug]]></description>
120
+ <content:encoded><![CDATA[<p>simple url slug</p>]]></content:encoded>
121
+ </item>
53
122
  <item>
54
123
  <title><![CDATA[draft]]></title>
55
124
  <link>https://docusaurus.io/myBaseUrl/blog/draft</link>
56
125
  <guid>draft</guid>
57
126
  <pubDate>Thu, 27 Feb 2020 00:00:00 GMT</pubDate>
58
127
  <description><![CDATA[this post should not be published yet]]></description>
128
+ <content:encoded><![CDATA[<p>this post should not be published yet</p>]]></content:encoded>
129
+ </item>
130
+ <item>
131
+ <title><![CDATA[some heading]]></title>
132
+ <link>https://docusaurus.io/myBaseUrl/blog/heading-as-title</link>
133
+ <guid>some heading</guid>
134
+ <pubDate>Wed, 02 Jan 2019 00:00:00 GMT</pubDate>
59
135
  </item>
60
136
  <item>
61
137
  <title><![CDATA[date-matter]]></title>
@@ -63,6 +139,7 @@ exports[`blogFeed rss shows feed item for each post 1`] = `
63
139
  <guid>date-matter</guid>
64
140
  <pubDate>Tue, 01 Jan 2019 00:00:00 GMT</pubDate>
65
141
  <description><![CDATA[date inside front matter]]></description>
142
+ <content:encoded><![CDATA[<p>date inside front matter</p>]]></content:encoded>
66
143
  </item>
67
144
  <item>
68
145
  <title><![CDATA[Happy 1st Birthday Slash! (translated)]]></title>
@@ -70,6 +147,7 @@ exports[`blogFeed rss shows feed item for each post 1`] = `
70
147
  <guid>Happy 1st Birthday Slash! (translated)</guid>
71
148
  <pubDate>Fri, 14 Dec 2018 00:00:00 GMT</pubDate>
72
149
  <description><![CDATA[Happy birthday! (translated)]]></description>
150
+ <content:encoded><![CDATA[<p>Happy birthday! (translated)</p>]]></content:encoded>
73
151
  </item>
74
152
  </channel>
75
153
  </rss>"
@@ -0,0 +1,64 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`getContentTranslationFiles should return translation files matching snapshot 1`] = `
4
+ Array [
5
+ Object {
6
+ "content": Object {
7
+ "description": Object {
8
+ "description": "The description for the blog used in SEO",
9
+ "message": "Someone's random blog",
10
+ },
11
+ "sidebar.title": Object {
12
+ "description": "The label for the left sidebar",
13
+ "message": "All my posts",
14
+ },
15
+ "title": Object {
16
+ "description": "The title for the blog used in SEO",
17
+ "message": "My blog",
18
+ },
19
+ },
20
+ "path": "options",
21
+ },
22
+ ]
23
+ `;
24
+
25
+ exports[`translateContent should return translated loaded content matching snapshot 1`] = `
26
+ Object {
27
+ "blogListPaginated": Array [
28
+ Object {
29
+ "items": Array [
30
+ "hello",
31
+ ],
32
+ "metadata": Object {
33
+ "blogDescription": "Someone's random blog (translated)",
34
+ "blogTitle": "My blog (translated)",
35
+ "nextPage": null,
36
+ "page": 1,
37
+ "permalink": "/",
38
+ "postsPerPage": 10,
39
+ "previousPage": null,
40
+ "totalCount": 1,
41
+ "totalPages": 1,
42
+ },
43
+ },
44
+ ],
45
+ "blogPosts": Array [
46
+ Object {
47
+ "id": "hello",
48
+ "metadata": Object {
49
+ "date": 2021-07-19T00:00:00.000Z,
50
+ "description": "/blog/2021/06/19/hello",
51
+ "formattedDate": "June 19, 2021",
52
+ "permalink": "/blog/2021/06/19/hello",
53
+ "source": "/blog/2021/06/19/hello",
54
+ "tags": Array [],
55
+ "title": "Hello",
56
+ "truncated": true,
57
+ },
58
+ },
59
+ ],
60
+ "blogSidebarTitle": "All my posts (translated)",
61
+ "blogTags": Object {},
62
+ "blogTagsListPath": "/tags",
63
+ }
64
+ `;