Specifies a layout file to use for all Razor pages processed by this module. This
lets you specify a different layout file for each document.
- Namespace
- Statiq
.Razor - Containing Type
- RenderRazor
Syntax
public RenderRazor WithLayout(Config<string> path)
Parameters
| Name | Type | Description |
|---|---|---|
| path | Config |
A delegate that should return the layout path as a path. |
Return Value
| Type | Description |
|---|---|
| RenderRazor | The current module instance. |