Optimizes the file name in the resulting path and sets the specified metadata key.
- Namespace
- Statiq
.Core - Containing Type
- OptimizeFileName
Syntax
public OptimizeFileName(Config<NormalizedPath> path, string outputKey)
Parameters
Name | Type | Description |
---|---|---|
path | Config |
A delegate that should return a NormalizedPath with a file name to optimize. |
outputKey | string | The metadata key to use for the optimized file name. |