feat(blog): Add frontMatter.title_meta
to override title for SEO
#4978
Annotations
14 errors
simple site › normal docs:
packages/docusaurus-plugin-content-docs/src/__tests__/docs.test.ts#L127
expect(received).toEqual(expected) // deep equality
- Expected - 0
+ Received + 2
@@ -11,13 +11,15 @@
},
"id": "foo/bar",
"lastUpdatedAt": undefined,
"lastUpdatedBy": undefined,
"permalink": "/docs/foo/bar",
+ "sidebarPosition": undefined,
"slug": "/foo/bar",
"source": "@site/docs/foo/bar.md",
"sourceDirName": "foo",
"tags": Array [],
"title": "Bar",
+ "title_meta": "Bar",
"unlisted": false,
"version": "current",
}
at Object.toEqual [as testMeta] (packages/docusaurus-plugin-content-docs/src/__tests__/docs.test.ts:127:22)
at Object.<anonymous> (packages/docusaurus-plugin-content-docs/src/__tests__/docs.test.ts:281:5)
|
simple site › docs with editUrl:
packages/docusaurus-plugin-content-docs/src/__tests__/docs.test.ts#L127
expect(received).toEqual(expected) // deep equality
- Expected - 0
+ Received + 1
@@ -50,8 +50,9 @@
"label": "tag 2",
"permalink": "/docs/tags/tag2-custom-permalink",
},
],
"title": "baz",
+ "title_meta": "baz",
"unlisted": false,
"version": "current",
}
at Object.toEqual [as testMeta] (packages/docusaurus-plugin-content-docs/src/__tests__/docs.test.ts:127:22)
at Object.<anonymous> (packages/docusaurus-plugin-content-docs/src/__tests__/docs.test.ts:348:5)
|
simple site › docs with custom editUrl & unrelated frontMatter:
packages/docusaurus-plugin-content-docs/src/__tests__/docs.test.ts#L127
expect(received).toEqual(expected) // deep equality
- Expected - 0
+ Received + 2
@@ -8,13 +8,15 @@
},
"id": "lorem",
"lastUpdatedAt": undefined,
"lastUpdatedBy": undefined,
"permalink": "/docs/lorem",
+ "sidebarPosition": undefined,
"slug": "/lorem",
"source": "@site/docs/lorem.md",
"sourceDirName": ".",
"tags": Array [],
"title": "lorem",
+ "title_meta": "lorem",
"unlisted": false,
"version": "current",
}
at Object.toEqual [as testMeta] (packages/docusaurus-plugin-content-docs/src/__tests__/docs.test.ts:127:22)
at Object.<anonymous> (packages/docusaurus-plugin-content-docs/src/__tests__/docs.test.ts:404:5)
|
simple site › docs with function editUrl:
packages/docusaurus-plugin-content-docs/src/__tests__/docs.test.ts#L127
expect(received).toEqual(expected) // deep equality
- Expected - 0
+ Received + 1
@@ -50,8 +50,9 @@
"label": "tag 2",
"permalink": "/docs/tags/tag2-custom-permalink",
},
],
"title": "baz",
+ "title_meta": "baz",
"unlisted": false,
"version": "current",
}
at Object.toEqual [as testMeta] (packages/docusaurus-plugin-content-docs/src/__tests__/docs.test.ts:127:22)
at Object.<anonymous> (packages/docusaurus-plugin-content-docs/src/__tests__/docs.test.ts:441:5)
|
simple site › docs with last update time and author:
packages/docusaurus-plugin-content-docs/src/__tests__/docs.test.ts#L127
expect(received).toEqual(expected) // deep equality
- Expected - 0
+ Received + 2
@@ -8,13 +8,15 @@
},
"id": "lorem",
"lastUpdatedAt": 1539502055000,
"lastUpdatedBy": "Author",
"permalink": "/docs/lorem",
+ "sidebarPosition": undefined,
"slug": "/lorem",
"source": "@site/docs/lorem.md",
"sourceDirName": ".",
"tags": Array [],
"title": "lorem",
+ "title_meta": "lorem",
"unlisted": false,
"version": "current",
}
at Object.toEqual [as testMeta] (packages/docusaurus-plugin-content-docs/src/__tests__/docs.test.ts:127:22)
at Object.<anonymous> (packages/docusaurus-plugin-content-docs/src/__tests__/docs.test.ts:518:5)
|
simple site › docs with unlisted frontmatter:
packages/docusaurus-plugin-content-docs/src/__tests__/docs.test.ts#L127
expect(received).toEqual(expected) // deep equality
- Expected - 0
+ Received + 1
@@ -13,8 +13,9 @@
"slug": "/doc-unlisted",
"source": "@site/docs/doc-unlisted.md",
"sourceDirName": ".",
"tags": Array [],
"title": "doc-unlisted",
+ "title_meta": "doc-unlisted",
"unlisted": true,
"version": "current",
}
at Object.toEqual [as testMeta] (packages/docusaurus-plugin-content-docs/src/__tests__/docs.test.ts:127:22)
at Object.<anonymous> (packages/docusaurus-plugin-content-docs/src/__tests__/docs.test.ts:582:5)
|
simple site › docs with last_update front matter:
packages/docusaurus-plugin-content-docs/src/__tests__/docs.test.ts#L127
expect(received).toEqual(expected) // deep equality
- Expected - 0
+ Received + 1
@@ -17,8 +17,9 @@
"slug": "/customLastUpdate",
"source": "@site/docs/customLastUpdate.md",
"sourceDirName": ".",
"tags": Array [],
"title": "Custom Last Update",
+ "title_meta": "Custom Last Update",
"unlisted": false,
"version": "current",
}
at Object.toEqual [as testMeta] (packages/docusaurus-plugin-content-docs/src/__tests__/docs.test.ts:127:22)
at Object.<anonymous> (packages/docusaurus-plugin-content-docs/src/__tests__/docs.test.ts:613:5)
|
simple site › docs with only last_update author front matter:
packages/docusaurus-plugin-content-docs/src/__tests__/docs.test.ts#L127
expect(received).toEqual(expected) // deep equality
- Expected - 0
+ Received + 1
@@ -16,8 +16,9 @@
"slug": "/lastUpdateAuthorOnly",
"source": "@site/docs/lastUpdateAuthorOnly.md",
"sourceDirName": ".",
"tags": Array [],
"title": "Last Update Author Only",
+ "title_meta": "Last Update Author Only",
"unlisted": false,
"version": "current",
}
at Object.toEqual [as testMeta] (packages/docusaurus-plugin-content-docs/src/__tests__/docs.test.ts:127:22)
at Object.<anonymous> (packages/docusaurus-plugin-content-docs/src/__tests__/docs.test.ts:652:5)
|
simple site › docs with only last_update date front matter:
packages/docusaurus-plugin-content-docs/src/__tests__/docs.test.ts#L127
expect(received).toEqual(expected) // deep equality
- Expected - 0
+ Received + 1
@@ -16,8 +16,9 @@
"slug": "/lastUpdateDateOnly",
"source": "@site/docs/lastUpdateDateOnly.md",
"sourceDirName": ".",
"tags": Array [],
"title": "Last Update Date Only",
+ "title_meta": "Last Update Date Only",
"unlisted": false,
"version": "current",
}
at Object.toEqual [as testMeta] (packages/docusaurus-plugin-content-docs/src/__tests__/docs.test.ts:127:22)
at Object.<anonymous> (packages/docusaurus-plugin-content-docs/src/__tests__/docs.test.ts:690:5)
|
simple site › docs with last_update front matter disabled:
packages/docusaurus-plugin-content-docs/src/__tests__/docs.test.ts#L127
expect(received).toEqual(expected) // deep equality
- Expected - 0
+ Received + 1
@@ -17,8 +17,9 @@
"slug": "/customLastUpdate",
"source": "@site/docs/customLastUpdate.md",
"sourceDirName": ".",
"tags": Array [],
"title": "Custom Last Update",
+ "title_meta": "Custom Last Update",
"unlisted": false,
"version": "current",
}
at Object.toEqual [as testMeta] (packages/docusaurus-plugin-content-docs/src/__tests__/docs.test.ts:127:22)
at Object.<anonymous> (packages/docusaurus-plugin-content-docs/src/__tests__/docs.test.ts:728:5)
|
Windows Tests (20)
The job was canceled because "_18_0" failed.
|
Windows Tests (20)
The operation was canceled.
|
Windows Tests (22)
The job was canceled because "_18_0" failed.
|
Windows Tests (22)
The operation was canceled.
|