@@ -86,7 +86,7 @@ type HeadConfig =
86
86
87
87
The following frontmatter options are only applicable when using the default theme.
88
88
89
- ### layout <Badge type="info" text="default theme only" />
89
+ ### layout
90
90
91
91
- Type: ` doc | home | page `
92
92
- Default: ` doc `
@@ -103,15 +103,15 @@ layout: doc
103
103
---
104
104
` ` `
105
105
106
- ### hero <Badge type="info" text="default theme only" /> <Badge type="info" text="Home page only" />
106
+ ### hero <Badge type="info" text="home page only" />
107
107
108
108
Defines contents of home hero section when ` layout ` is set to ` home ` . More details in [Default Theme: Home Page](./default-theme-home-page).
109
109
110
- ### features <Badge type="info" text="default theme only" /> <Badge type="info" text="Home page only" />
110
+ ### features <Badge type="info" text="home page only" />
111
111
112
112
Defines items to display in features section when ` layout ` is set to ` home ` . More details in [Default Theme: Home Page](./default-theme-home-page).
113
113
114
- ### navbar <Badge type="info" text="default theme only" />
114
+ ### navbar
115
115
116
116
- Type: ` boolean `
117
117
- Default: ` true `
@@ -124,7 +124,7 @@ navbar: false
124
124
---
125
125
` ` `
126
126
127
- ### sidebar <Badge type="info" text="default theme only" />
127
+ ### sidebar
128
128
129
129
- Type: ` boolean `
130
130
- Default: ` true `
@@ -137,7 +137,7 @@ sidebar: false
137
137
---
138
138
` ` `
139
139
140
- ### aside <Badge type="info" text="default theme only" />
140
+ ### aside
141
141
142
142
- Type: ` boolean | ' left' `
143
143
- Default: ` true `
@@ -154,14 +154,14 @@ aside: false
154
154
---
155
155
` ` `
156
156
157
- ### outline <Badge type="info" text="default theme only" />
157
+ ### outline
158
158
159
159
- Type: ` number | [number , number ] | ' deep' | false `
160
160
- Default: ` 2 `
161
161
162
162
The levels of header in the outline to display for the page. It's same as [config.themeConfig.outline](./default-theme-config#outline), and it overrides the theme config.
163
163
164
- ### lastUpdated <Badge type="info" text="default theme only" />
164
+ ### lastUpdated
165
165
166
166
- Type: ` boolean `
167
167
- Default: ` true `
@@ -174,7 +174,7 @@ lastUpdated: false
174
174
---
175
175
` ` `
176
176
177
- ### editLink <Badge type="info" text="default theme only" />
177
+ ### editLink
178
178
179
179
- Type: ` boolean `
180
180
- Default: ` true `
@@ -187,15 +187,35 @@ editLink: false
187
187
---
188
188
` ` `
189
189
190
- ### footer <Badge type="info" text="default theme only" />
190
+ ### footer
191
191
192
192
- Type: ` boolean `
193
193
- Default: ` true `
194
194
195
- Whether to display [footer](./default-theme-footer).
195
+ Whether to display [footer](./default-theme-footer).
196
196
197
197
` ` ` yaml
198
198
---
199
199
footer : false
200
200
---
201
201
` ` `
202
+
203
+ ### pageClass
204
+
205
+ - Type: ` string `
206
+
207
+ Add extra class name to a specific page.
208
+
209
+ ` ` ` yaml
210
+ ---
211
+ pageClass : custom -page -class
212
+ ---
213
+ ` ` `
214
+
215
+ Then you can customize styles of this specific page in ` .vitepress /theme /custom .css ` file:
216
+
217
+ ` ` ` css
218
+ .custom -page -class {
219
+ /* page-specific styles */
220
+ }
221
+ ` ` `
0 commit comments