VPS者 - Introduction: http://vpser.xyz/docs/getting-started/introduction/ - Create a Site: http://vpser.xyz/docs/getting-started/create-a-site/ - Configuration: http://vpser.xyz/docs/getting-started/configuration/ - Organisation: http://vpser.xyz/docs/content/organisation/ - Pages: http://vpser.xyz/docs/content/pages/ - Menus: http://vpser.xyz/docs/content/menus/ - Blog: http://vpser.xyz/docs/content/blog/ - Multi-Language: http://vpser.xyz/docs/content/multilingual/ - Shortcodes: http://vpser.xyz/docs/content/shortcodes/ - Asciinema: http://vpser.xyz/docs/content/shortcodes/asciinema/ - Buttons: http://vpser.xyz/docs/content/shortcodes/buttons/ - Columns: http://vpser.xyz/docs/content/shortcodes/columns/ - Details: http://vpser.xyz/docs/content/shortcodes/details/ - Images: http://vpser.xyz/docs/content/shortcodes/experimental/images/ - Hints: http://vpser.xyz/docs/content/shortcodes/hints/ - Mermaid: http://vpser.xyz/docs/content/shortcodes/mermaid/ - Steps: http://vpser.xyz/docs/content/shortcodes/steps/ - Tabs: http://vpser.xyz/docs/content/shortcodes/tabs/ - KaTeX: http://vpser.xyz/docs/content/shortcodes/katex/ - Styles: http://vpser.xyz/docs/customization/styles/ - Inject Partials: http://vpser.xyz/docs/customization/inject-partials/ # Page Frontmatter Every page can use these [frontmatter](https://gohugo.io/content-management/front-matter/) parameters to control its behavior in the theme. {{< tabs >}} {{% tab "YAML" %}} ```yaml {filename=_index.md} --- title: My Page weight: 10 params: bookToC: true bookCollapseSection: true --- ``` {{% /tab %}} {{% tab "TOML" %}} ```toml {filename=_index.md} +++ title = 'My Page' weight = 10 bookToC = true bookCollapseSection = true +++ ``` {{% /tab %}} {{% tab "JSON" %}} ```json {filename=_index.md} { "title": "My Page", "weight": 10, "bookToC": true, "bookCollapseSection": true } ``` {{% /tab %}} {{< /tabs >}} ## Navigation These parameters control how the page appears in the sidebar menu. Set in page frontmatter. | Parameter | Default | Description | | --- | --- | --- | | `weight` | | Menu ordering. Lower values appear first. Without weight, pages are sorted alphabetically. | | `bookHidden` | `false` | Hide the page from the sidebar menu. The page is still accessible by URL. | | `bookCollapseSection` | `false` | Make a section collapsible in the sidebar. Subsections are hidden until clicked. | | `bookFlatSection` | `false` | Display subsection pages at the same level instead of nesting them. | | `bookHref` | | Override the menu link with an external URL. | | `bookIcon` | | Display an icon next to the menu entry. | ## Content Display These parameters control page content rendering. Set in page frontmatter. | Parameter | Default | Description | | --- | --- | --- | | `bookToC` | | Show or hide the table of contents. Overrides the site-level `BookToC` setting. | | `bookBreadcrumbs` | | Show or hide breadcrumbs. Overrides the site-level `BookBreadcrumbs` setting. | | `bookPageLinks` | | Show or hide linked pages under the table of contents. Overrides the site-level `BookPageLinks` setting. | | `bookComments` | | Show or hide comments. Overrides the site-level `BookComments` setting. | | `bookSearchExclude` | `false` | Exclude this page from the search index. | See [Blog](/docs/content/blog/) for post-specific frontmatter.