mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
1.4 KiB
1.4 KiB
title, createTime, permalink
| title | createTime | permalink |
|---|---|---|
| Homepage | 2025/10/09 15:00:43 | /en/config/frontmatter/home/ |
Overview
Applicable only to the homepage. Configure in {sourceDir}/README.md.
Example:
---
pageLayout: home
config:
- type: banner
- type: custom
---
Configuration
home
-
Type:
boolean -
Details:
Declares whether the page is the homepage.
Deprecated. Please use
pageLayout: 'home'instead.
pageLayout
-
Type:
'home' -
Details:
Declares the current page as the homepage.
config
- Type:
PlumeHomeConfig[]
Defines homepage sections.
interface PlumeHomeConfigBase {
/**
* The type of this section, which determines the component to be applied
*/
type: 'banner' | 'hero' | 'text-image' | 'image-text' | 'features' | 'profile' | 'custom' | string
/**
* Whether this section should be full-screen
*/
full?: boolean
/**
* Background image for this section
* You can define background images for light/dark modes
*/
backgroundImage?: string | { light: string, dark: string }
/**
* Background attachment style for this section
*/
backgroundAttachment?: 'fixed' | 'local'
}
For more detailed configuration, please refer to Custom Homepage.
signDown
-
Type:
boolean -
Default:
false -
Details:
Whether to display the downward arrow indicator.