Adds additional output files that you specify by supplying a delegate that takes a dictionary
of redirected paths to destination URLs.
- Namespace
- Statiq
.Core - Containing Type
- GenerateRedirects
Syntax
public GenerateRedirects WithAdditionalOutput(in NormalizedPath path, Func<IDictionary<NormalizedPath, string>, string> content)
Parameters
| Name | Type | Description |
|---|---|---|
| path | NormalizedPath | The path of the output file (must be relative). |
| content | Func |
A delegate that takes a dictionary with keys equal to each redirected file and values equal to the destination URL. The delegate should return the content of the output file. |
Return Value
| Type | Description |
|---|---|
| GenerateRedirects | The current module instance. |