Helps generate normalized links.
- Namespace
- Statiq
.Common - Interfaces
- Base Types
-
- object
graph BT
Type-->Base0["object"]
Type-.->Interface0["ILinkGenerator"]
click Interface0 "/api/Statiq.Common/ILinkGenerator"
Type["LinkGenerator"]
class Type type-node
Syntax
public class LinkGenerator : ILinkGenerator
Remarks
Override this class and register your implementation to use alternate link generation logic.
Methods
Name | Return Value | Summary |
---|---|---|
AddQueryAndFragment |
string |
Adds a query and/or fragment to a URL or path.
|
GetLink |
string |
Generates a normalized link given a path and other conditions.
|
Try |
bool |
Checks if a string contains an absolute URI with a "http" or "https" scheme and returns it if it does.
|