Layout to rewrite page to another page.
Become a backer or sponsor to support our work.
layout| Name | Context | Type | Required | Default | Since | Example |
|---|---|---|---|---|---|---|
layout | - | string | ✓ | - | - | - |
MUST be rewrite.
rewrite.path| Name | Context | Type | Required | Default | Since | Example |
|---|---|---|---|---|---|---|
rewrite.path | - | string | ✓ | - | - | - |
The path of page.
rewrite.template| Name | Context | Type | Required | Default | Since | Example |
|---|---|---|---|---|---|---|
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---