From f2ab3a7d1829f69a796e6ed0afa8a0b608ade909 Mon Sep 17 00:00:00 2001 From: Mikey O'Toole Date: Tue, 17 Jan 2023 12:20:21 +0000 Subject: [PATCH 1/2] Document `wrapperClassName` frontmatter. --- website/docs/api/plugins/plugin-content-pages.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/website/docs/api/plugins/plugin-content-pages.mdx b/website/docs/api/plugins/plugin-content-pages.mdx index 1be21f3b3711..cc11a9646564 100644 --- a/website/docs/api/plugins/plugin-content-pages.mdx +++ b/website/docs/api/plugins/plugin-content-pages.mdx @@ -93,6 +93,7 @@ Accepted fields: | --- | --- | --- | --- | | `title` | `string` | Markdown title | The blog post title. | | `description` | `string` | The first line of Markdown content | The description of your page, which will become the `` and `` in ``, used by search engines. | +| `wrapperClassName` | `string` | Class name to be added to the wrapper element to allow targetting specific page content. | | `hide_table_of_contents` | `boolean` | `false` | Whether to hide the table of contents to the right. | | `draft` | `boolean` | `false` | Draft pages will only be available during development. | | `unlisted` | `boolean` | `false` | Unlisted pages will be available in both development and production. They will be "hidden" in production, not indexed, excluded from sitemaps, and can only be accessed by users having a direct link. | @@ -107,6 +108,7 @@ Example: --- title: Markdown Page description: Markdown page SEO description +wrapperClassName: markdown-page hide_table_of_contents: false draft: true --- From fd679f396056656ad3c8e1b577aaa87c3d67de0e Mon Sep 17 00:00:00 2001 From: Mikey O'Toole Date: Tue, 17 Jan 2023 12:27:51 +0000 Subject: [PATCH 2/2] Fix typo --- website/docs/api/plugins/plugin-content-pages.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/api/plugins/plugin-content-pages.mdx b/website/docs/api/plugins/plugin-content-pages.mdx index cc11a9646564..eaefe2ff8db5 100644 --- a/website/docs/api/plugins/plugin-content-pages.mdx +++ b/website/docs/api/plugins/plugin-content-pages.mdx @@ -93,7 +93,7 @@ Accepted fields: | --- | --- | --- | --- | | `title` | `string` | Markdown title | The blog post title. | | `description` | `string` | The first line of Markdown content | The description of your page, which will become the `` and `` in ``, used by search engines. | -| `wrapperClassName` | `string` | Class name to be added to the wrapper element to allow targetting specific page content. | +| `wrapperClassName` | `string` | Class name to be added to the wrapper element to allow targeting specific page content. | | `hide_table_of_contents` | `boolean` | `false` | Whether to hide the table of contents to the right. | | `draft` | `boolean` | `false` | Draft pages will only be available during development. | | `unlisted` | `boolean` | `false` | Unlisted pages will be available in both development and production. They will be "hidden" in production, not indexed, excluded from sitemaps, and can only be accessed by users having a direct link. |