Layout Frontmatter Config
You can configure page layout by setting the following frontmatter options.
Options
PageInfo[] | falseCustomize page info items in current page.
See also: Feature → PageInfo.
| Item | Corresponding Content | Page frontmatter Value |
|---|---|---|
"Author" | Author | author |
"Date" | Writing Date | date |
"Category" | Category | category |
"Tag" | Tags | tag |
"ReadingTime" | Expect reading time | N/A (automatically generated) |
"Word" | Word count | N/A (automatically generated) |
"PageView" | Visit Number | pageview (only available with Waline) |
booleanWhether show icons in breadcrumb.
See also: Layout → Page.
booleanWhether to exclude the current page from the breadcrumb.
See also: Layout → Page.
booleanSetting it to false will disable navbar.
See also: Layout → Navbar.
false | SidebarArrayOptionsSetting it to false will disable sidebar, setting it to empty array [] will render sidebar slots content only.
See also: Layout → Sidebar.
booleantrueWhether index current page in sidebar and catalog.
numberPage order in sidebar and catalog.
- By filling in a positive number, the page will appear in the front, while the smaller number comes to the front.
- By filling in a negative number, the page will appear in the end, while the greater number comes to the front. (e.g. -1 is after -2)
Sidebar group information used for structure sidebar.
- By filling in a positive number, the page will appear in the front, while the smaller number comes to the front.
- By filling in a negative number, the page will appear in the end, while the greater number comes to the front. (e.g. -1 is after -2)
stringREADME.mdGroup title.
stringREADME.mdGroup icon.
booleantrueWhether group is collapsible.
booleanWhether Dir is clickable.
Note
Setting to true means setting group link to link of README.md.
booleantrueWhether index current dir.
numberGroup order in sidebar.
booleanWhether to enable comments on the current page.
booleanWhether to display lastUpdated time.
booleanWhether to show edit link.
booleanWhether to show contributors.
booleanWhether to display changelog.
AutoLinkConfig | string | falsePrevious article link.
stringLink text.
stringLink icon.
stringLink address.
AutoLinkConfig | string | falseNext article link.
stringLink text.
stringLink icon.
stringLink address.
boolean | string | HTMLStringFooter content.
- Set it to an empty string if you want an empty content.
- Set it to
falseto disable the footer. - Set it to
trueto display the default footer.
See also: Page → Footer Support.
string | falseCopyright information.
See also: Page → Footer Support.
booleantrueWhether display the back to top button.
GetHeadersOptions | booleanWhether display toc.
1to6for<h1>to<h6>.false: No headers.number: only headings of that level will be displayed.[number, number]: headings level tuple, where the first number should be less than the second number, for example,[2, 4]which means all headings from<h2>to<h4>will be displayed.deep: same as[2, 6], which means all headings from<h2>to<h6>will be displayed.
string"#markdown-content > h1, #markdown-content > h2, #markdown-content > h3, #markdown-content > h4, #markdown-content > h5, #markdown-content > h6, [vp-content] > h2"The selector of the headers.
string[][".vp-badge", ".vp-icon"]Ignore specific elements within the header, should be an array of CSS Selector.
HeaderLevels"deep"The levels of the headers, where HeaderLevels is false, a number, a [number, number] tuple or "deep".
stringExtra container class.
string"Layout"Page custom layout name.
Changelog
0c1aa-onc0dab-one12a3-on9f5ef-on76d91-onb1230-onc3f60-ond7092-on2c32a-on738a3-on7bd34-ona8a07-on73a17-on2a306-on79d68-on86180-on8174c-oncceef-on6af05-on7d314-on2243a-on3d007-on8004f-on9856d-on1bd08-onfd395-on1eb77-on66bcf-on4164d-on1eb1a-onde367-onbabc9-on0c093-one3735-on4a252-onf6ff0-on642ad-on234d7-on04b8a-on3c199-on