跳转到内容
本站为社区维护的非官方中文翻译,与 Cloudflare, Inc. 无关联。本站不提供账户登录,请勿在任何非官方站点输入您的 Cloudflare 账户信息。官方文档:developers.cloudflare.com

自定义属性

最后更新 查看 MarkdownAgent 设置

我们添加了一些自定义 frontmatter 属性,以满足特定需求。

属性

类型:object 可选

说明:Displays a Banner on the current docs page.

canonical

类型:string 可选

说明:A canonical URL or path to set as the <link rel="canonical"> in the page <head>, overriding the default derived from the page URL.

difficulty

类型:string 可选

说明:Difficulty is displayed as a column in the ListTutorials component.

类型:string 可选

说明:Path to another page in our docs or elsewhere. Used to add a crosslink entry to the lefthand navigation sidebar.

feedback

类型:boolean

说明:Whether to show the FeedbackPrompt on the page, defaults to true

hideChildren

类型:boolean 可选

说明:Renders this group as a single link on the sidebar, to the index page. Refer to Sidebar.

noindex

类型:boolean 可选

说明:If true, this property adds a noindex declaration to the page, which will tell internal / external search crawlers to ignore this page. Helpful for pages that are historically accurate, but no longer recommended, such as Workers Sites.

pcx_content_type

类型:string 可选

说明:The purpose of the page, and defined through specific pages in Content strategy.

products

类型:array

说明:The names of related directory entries (according to their file name in src/content/directory). Usually, these correspond to file paths, but not always, such as with cloudflare-tunnel

release_notes_file_name

类型:array 可选

说明:Required for the ProductReleaseNotes component.

reviewed

类型:undefined 可选

说明:A YYYY-MM-DD value that signals when the page was last explicitly reviewed from beginning to end.

类型:object

说明:Used to configure various sidebar options. Refer to Sidebar.

styleGuide

类型:object 可选

说明:Used by overrides for style guide component documentation, which helps us display the usage counts for components directly on the component page itself.

summary

类型:string 可选

说明:Renders a summary description directly below the page title.

tags

类型:array 可选

说明:A group of related keywords relating to the purpose of the page.

这篇文档对您有帮助吗?