LinkGenerator Class
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, string) string
Adds a query and/or fragment to a URL or path.
GetLink(string, string, string, string, string[], string[], bool, bool, bool) string
Generates a normalized link given a path and other conditions.
TryGetAbsoluteHttpUri(string, string) bool
Checks if a string contains an absolute URI with a "http" or "https" scheme and returns it if it does.

Extension Methods