Layout to rewrite page to another page.
layout
Name | Type | Required | Default | Since |
---|---|---|---|---|
layout | string | ✓ | - | - |
MUST be rewrite
.
rewrite.path
Name | Type | Required | Default | Since |
---|---|---|---|---|
rewrite.path | string | ✓ | - | - |
The path of page.
rewrite.template
Name | Type | Required | Default | Since |
---|---|---|---|---|
rewrite.template | string | - | single | - |
The render template.
Let’s said there is a /docs/overview
detailed page, and rewrite the homepage to that page, you’ll need to configure parameters on front matter as follows.
1---
2layout: rewrite
3rewrite:
4 path: /docs/overview
5---