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.
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-markdown" data-lang="markdown"><span class="line"><span class="ln">1</span><span class="cl">---
2layout: rewrite 3rewrite: 4 path: /docs/overview 5—